summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6c44822..f8846cb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -164,14 +164,16 @@ class apache {
else {
if !defined(User["$user"]) {
user::manage { "$user":
- tag => "virtual",
- ensure => absent,
+ tag => "virtual",
+ password => $password,
+ ensure => absent,
}
}
if !defined(Group[$gid]) {
group { "$gid":
- ensure => absent,
+ ensure => absent,
+ require => User[$user],
}
}
}