summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-10-10 12:53:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-10-10 12:53:10 -0300
commit21170ea32dcf4070b8c0f2d367e5663eea257a78 (patch)
tree2504ee561ca53763b389b60d122e79a3a4676587 /manifests
parentcb09cb63ebadc0428cbc76e1a79a9750834e6192 (diff)
downloadpuppet-apache-21170ea32dcf4070b8c0f2d367e5663eea257a78.tar.gz
puppet-apache-21170ea32dcf4070b8c0f2d367e5663eea257a78.tar.bz2
Adding manage_user parameter
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1dab2a7..b3f931f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -101,7 +101,7 @@ class apache {
$manage_docroot = true, $owner = 'root', $group = 'root',
$mpm = true, $mpm_user = '', $mpm_group = '', $password = '*',
$comment = '', $sshkey = absent,
- $groups = '', $shell = '/bin/false') {
+ $groups = '', $shell = '/bin/false', $manage_user = true) {
$vhost = $filename ? {
'' => "$title",
@@ -123,7 +123,7 @@ class apache {
default => $mpm_group,
}
- if $mpm == true and $user != 'root' {
+ if $mpm == true and $manage_user == true and $user != 'root' {
if !defined(Group[$gid]) {
group { "$gid":
ensure => $ensure,