summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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],
}
}
}