diff options
author | Pierre-Yves Ritschard <pyr@milestonelab.com> | 2011-02-03 17:58:09 +0000 |
---|---|---|
committer | R.I.Pienaar <rip@devco.net> | 2011-02-03 18:01:36 +0000 |
commit | 031bf261289dcbb32e63b053ed5b3a82117698c0 (patch) | |
tree | aebbada8d2acc6f36b4141cd814b4f63df40ea56 /manifests/init.pp | |
parent | 3c46b82d09a9ce7ebf66b42b342a753e59b6d467 (diff) | |
download | puppet-concat-031bf261289dcbb32e63b053ed5b3a82117698c0.tar.gz puppet-concat-031bf261289dcbb32e63b053ed5b3a82117698c0.tar.bz2 |
- make the root group configurable in the concat::setup class for portability
- use sh and not bash
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 909d7b6..3a17346 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -87,7 +87,7 @@ # ALIASES: # - The exec can notified using Exec["concat_/path/to/file"] or Exec["concat_/path/to/directory"] # - The final file can be referened as File["/path/to/file"] or File["concat_/path/to/file"] -define concat($mode = 0644, $owner = "root", $group = "root", $warn = "false", $force = "false", $backup = "puppet", $gnu = "true", $order="alpha") { +define concat($mode = 0644, $owner = "root", $group = $concat::setup::root_group, $warn = "false", $force = "false", $backup = "puppet", $gnu = "true", $order="alpha") { $safe_name = regsubst($name, '/', '_', 'G') $concatdir = $concat::setup::concatdir $version = $concat::setup::majorversion @@ -127,7 +127,7 @@ define concat($mode = 0644, $owner = "root", $group = "root", $warn = "false", $ File{ owner => root, - group => root, + group => $group, mode => $mode, backup => $backup } @@ -165,7 +165,7 @@ define concat($mode = 0644, $owner = "root", $group = "root", $warn = "false", $ exec{"concat_${name}": user => root, - group => root, + group => $group, notify => File[$name], subscribe => File[$fragdir], alias => "concat_${fragdir}", |