From: Silvio Rhatto Date: Sat, 9 Oct 2010 18:54:35 +0000 (-0300) Subject: Replacing dots in user and group names X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ace88237bfb8c6b8bb55bcd1cd8ead1fdcc8dd0b;p=puppet-apache.git Replacing dots in user and group names --- 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, }