Resource Type: prepend_file_line

Defined in:
lib/puppet/type/prepend_file_line.rb
Providers:
ruby

Overview

Type that can prepend whole a line to a file if it does not already contain it.

Example:

file_prepend_line { 'sudo_rule': path => '/etc/sudoers', line => '%admin ALL=(ALL) ALL', }

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present

Parameters

  • line

    The line to be prepended to the path.

  • name (namevar)

    arbitrary name used as identity

  • path

    File to possibly prepend a line to.