]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Replacing dots in user and group names
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 18:54:35 +0000 (15:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 18:54:35 +0000 (15:54 -0300)
manifests/init.pp

index c33320fd25a2114d43fb497890b506a4df26009d..f0ce75788ddd28744d6bce655c2a677de22b5615 100644 (file)
@@ -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,
       }