avoid dependency loop

This commit is contained in:
mh 2010-07-05 22:19:26 +02:00
parent ac97d73cb0
commit 54ddde930f

View file

@ -145,7 +145,6 @@ define user::managed(
if $manage_group { if $manage_group {
group { $name: group { $name:
allowdupe => false, allowdupe => false,
before => User[$name],
ensure => $ensure, ensure => $ensure,
} }
if $real_gid { if $real_gid {
@ -166,6 +165,10 @@ define user::managed(
} }
} }
} }
} else {
Group[$name]{
before => User[$name],
}
} }
} }
} }