summaryrefslogtreecommitdiff
path: root/manifests/setup.pp
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@milestonelab.com>2011-02-03 17:58:09 +0000
committerR.I.Pienaar <rip@devco.net>2011-02-03 18:01:36 +0000
commit031bf261289dcbb32e63b053ed5b3a82117698c0 (patch)
treeaebbada8d2acc6f36b4141cd814b4f63df40ea56 /manifests/setup.pp
parent3c46b82d09a9ce7ebf66b42b342a753e59b6d467 (diff)
downloadpuppet-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.pp5
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;
}
}