From 2f35c78a9ec0adbe1f83b9107ae9d5e3b3f58e1c Mon Sep 17 00:00:00 2001 From: Jasper Poppe Date: Wed, 12 Dec 2012 14:33:47 +0100 Subject: added (file) $replace parameter to concat --- CHANGELOG | 1 + manifests/init.pp | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index efed649..139a638 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -37,3 +37,4 @@ CHANGELOG: - 2012/08/30 - The target path can be different from the $name - 2012/08/30 - More Puppet Lint cleanup - 2012/09/04 - RELEASE 0.2.0 +- 2012/12/12 - Added (file) $replace parameter to concat diff --git a/manifests/init.pp b/manifests/init.pp index 960098d..44d69d4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -129,6 +129,7 @@ define concat( $warn = false, $force = false, $backup = 'puppet', + $replace = true, $gnu = undef, $order='alpha' ) { @@ -184,10 +185,11 @@ define concat( } File { - owner => $::id, - group => $group, - mode => $mode, - backup => $backup + owner => $::id, + group => $group, + mode => $mode, + backup => $backup, + replace => $replace } file { $fragdir: -- cgit v1.2.3 From c854799c53e8c40a437f42a44b0b0decc7746285 Mon Sep 17 00:00:00 2001 From: Jasper Poppe Date: Wed, 12 Dec 2012 15:14:51 +0100 Subject: added description of replace in the comment block --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 44d69d4..b309059 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -102,6 +102,8 @@ # that it is built by puppet # - 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 # # ACTIONS: # - Creates fragment directories if it didn't exist already -- cgit v1.2.3