require group only if we do the group

This commit is contained in:
mh 2008-11-22 21:01:30 +00:00
parent 57da696ed4
commit 45b4a47b1e

View file

@ -60,7 +60,6 @@ define user::define_user(
shell => $real_shell,
groups => $groups,
membership => $membership,
require => Group[$name],
}
@ -122,6 +121,9 @@ define user::define_user(
case $name {
root: {}
default: {
User[$name]{
require => Group[$name],
}
group { $name:
allowdupe => false,
ensure => present,