avoid dependency loop
authormh <mh@immerda.ch>
Mon, 5 Jul 2010 20:19:26 +0000 (22:19 +0200)
committermh <mh@immerda.ch>
Mon, 5 Jul 2010 20:19:26 +0000 (22:19 +0200)
manifests/managed.pp

index 59fc1bf..52d4f94 100644 (file)
@@ -145,7 +145,6 @@ define user::managed(
             if $manage_group {
                 group { $name:
                     allowdupe => false,
-                    before => User[$name],
                     ensure => $ensure,
                 }
                 if $real_gid {
@@ -166,6 +165,10 @@ define user::managed(
                       }
                     }
                   }
+                } else {
+                   Group[$name]{
+                     before => User[$name],
+                   }
                 }
             }
         }