summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-10-09 14:25:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-10-09 14:25:55 -0300
commitb766de2c3eeed4790d2b7645643971a2ab622025 (patch)
tree906a87d990904812202bb8f79240d512ca24f488 /manifests
parenta01d1686bb84ae1f2fb493080efc863f14389304 (diff)
downloadpuppet-apache-b766de2c3eeed4790d2b7645643971a2ab622025.tar.gz
puppet-apache-b766de2c3eeed4790d2b7645643971a2ab622025.tar.bz2
MPM group creation
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index df4fce7..83ff8c8 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -128,6 +128,12 @@ class apache {
default => $mpm_group,
}
+ if !defined(Group[$gid]) {
+ group { "$gid":
+ ensure => $ensure,
+ }
+ }
+
if !defined(User["$user"]) {
user::manage { "$user":
tag => "virtual",
@@ -139,6 +145,7 @@ class apache {
sshkey => $sshkey,
shell => $shell,
ensure => $ensure,
+ require => Group[$gid],
}
}
}