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/setup.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/setup.pp')
-rw-r--r-- | manifests/setup.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/setup.pp b/manifests/setup.pp index 9676fb6..77ba47f 100644 --- a/manifests/setup.pp +++ b/manifests/setup.pp @@ -13,12 +13,13 @@ # # It also copies out the concatfragments.sh file to /usr/local/bin class concat::setup { + $root_group = 0 $concatdir = "/var/lib/puppet/concat" $majorversion = regsubst($puppetversion, '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1') file{"/usr/local/bin/concatfragments.sh": owner => root, - group => root, + group => $root_group, mode => 755, source => $majorversion ? { 24 => "puppet:///concat/concatfragments.sh", @@ -28,7 +29,7 @@ class concat::setup { $concatdir: ensure => directory, owner => root, - group => root, + group => $root_group, mode => 755; } } |