module concat

Public Instance Methods

concat( $ensure => 'present', $path => 'name', $owner => 'undef', $group => 'undef', $mode => '0644', $warn => 'false', $force => 'false', $backup => 'puppet', $replace => 'true', $order => 'alpha', $ensure_newline => 'false', $gnu => 'undef' )

Define: concat

Sets up so that you can use fragments to build a final config file,

Options:

ensure

Present/Absent

path

The path to the final file. Use this in case you want to differentiate between the name of a resource and the file path. Note: Use the name you provided in the target of your fragments.

owner

Who will own the file

group

Who will own the file

mode

The mode of the final file

force

Enables creating empty files if no fragments are present

warn

Adds a normal shell style comment top of the file indicating that it is built by puppet

force
backup

Controls the filebucketing behavior of the final file and see File type reference for its use. Defaults to 'puppet'

replace

Whether to replace a file that already exists on the local system

order
ensure_newline
gnu

Deprecated

Actions:

  • Creates fragment directories if it didn't exist already

  • Executes the concatfragments.sh script to build the final file, this script will create directory/fragments.concat. Execution happens only when:

    • The directory changes

    • fragments.concat != final destination, this means rebuilds will happen whenever someone changes or deletes the final file. Checking is done using /usr/bin/cmp.

    • The Exec gets notified by something else - like the concat::fragment define

  • Copies the file over to the final destination using a file resource

Aliases:

  • The exec can notified using Exec or Exec

  • The final file can be referenced as File or File

fragment( $target, $content => 'undef', $source => 'undef', $order => '10', $ensure => 'undef', $mode => 'undef', $owner => 'undef', $group => 'undef', $backup => 'undef' )

Define: concat::fragment

Puts a file fragment into a directory previous setup using concat

Options:

target

The file that these fragments belong to

content

If present puts the content into the file

source

If content was not specified, use the source

order

By default all files gets a 10_ prefix in the directory you can set it to anything else using this to influence the order of the content in the file

ensure

Present/Absent or destination to a file to include another file

mode

Deprecated

owner

Deprecated

group

Deprecated

backup

Deprecated