]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
MPM group creation
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 17:25:55 +0000 (14:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 9 Oct 2010 17:25:55 +0000 (14:25 -0300)
manifests/init.pp

index df4fce7c2b8fde429a816642b0c9d950cee8da10..83ff8c801ad75568879dcb0498e4826c700123ba 100644 (file)
@@ -128,6 +128,12 @@ class apache {
         default => $mpm_group,
       }
 
+      if !defined(Group[$gid]) {
+        group { "$gid":
+          ensure   => $ensure,
+        }
+      }
+
       if !defined(User["$user"]) {
         user::manage { "$user":
           tag      => "virtual",
@@ -139,6 +145,7 @@ class apache {
           sshkey   => $sshkey,
           shell    => $shell,
           ensure   => $ensure,
+          require  => Group[$gid],
         }
       }
     }