fixing definition
This commit is contained in:
parent
ff436ef711
commit
33d462b979
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue