require group only if we do the group
This commit is contained in:
parent
57da696ed4
commit
45b4a47b1e
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue