# Add a snippet called $name to the concatenated_file at $dir. # The file can be referenced as File["cf_part_${name}"] define common::concatenated_file_part ( $dir, $content = '', $ensure = present, $mode = 0644, $owner = root, $group = 0 ) { file { "${dir}/${name}": ensure => $ensure, content => $content, mode => $mode, owner => $owner, group => $group, alias => "cf_part_${name}", notify => Exec["concat_${dir}"], } }