fixing definition

This commit is contained in:
mh 2008-10-20 20:30:18 +00:00
parent ff436ef711
commit 33d462b979

View file

@ -58,7 +58,7 @@ define user::define_user(
file{"$real_homedir": file{"$real_homedir":
ensure => directory, ensure => directory,
require => User[$name], require => User[$name],
owner => $name, group => $name, mode => $homedir_mode; owner => $name, mode => $homedir_mode;
} }
case $uid { case $uid {
@ -99,7 +99,11 @@ define user::define_user(
} }
case $gid { case $gid {
'absent': { info("no gid defined for user $name") } 'absent': {
File[$real_homedir]{
group => $name,
}
}
default: { default: {
File[$real_homedir]{ File[$real_homedir]{
group => $gid, group => $gid,