summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-10-09 15:54:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-10-09 15:54:35 -0300
commitace88237bfb8c6b8bb55bcd1cd8ead1fdcc8dd0b (patch)
treeaa8922bf6788fc78f126d69652f239dd9f529476 /manifests
parent7811795f8fcb38b75fd6680d5a6e1f44d5af70e5 (diff)
downloadpuppet-apache-ace88237bfb8c6b8bb55bcd1cd8ead1fdcc8dd0b.tar.gz
puppet-apache-ace88237bfb8c6b8bb55bcd1cd8ead1fdcc8dd0b.tar.bz2
Replacing dots in user and group names
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 c33320f..f0ce757 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -120,12 +120,12 @@ class apache {
if $mpm == true and $user != 'root' {
$user = $mpm_user ? {
- '' => $title,
+ '' => regsubst($title, '\.', '_', 'G'),
default => $mpm_user,
}
$gid = $mpm_group? {
- '' => $title,
+ '' => regsubst($title, '\.', '_', 'G'),
default => $mpm_group,
}