fixed behaviour for root ssh_keys
This commit is contained in:
parent
c1d228df71
commit
0d4f2e1e82
1 changed files with 6 additions and 6 deletions
|
@ -18,11 +18,6 @@ define user::define_user(
|
|||
$shell = ''
|
||||
){
|
||||
|
||||
$real_ssh_key = $ssh_key ? {
|
||||
'' => $name,
|
||||
default => $ssh_key,
|
||||
}
|
||||
|
||||
$real_home_dir = $home_dir ? {
|
||||
'' => "/home/$name",
|
||||
default => $home_dir
|
||||
|
@ -62,5 +57,10 @@ define user::define_user(
|
|||
mode => 0750, owner => $name, group => $name;
|
||||
}
|
||||
|
||||
case $ssh_key {
|
||||
'' => {},
|
||||
default => {
|
||||
ssh::deploy_auth_key{"user_sshkey_${name}": source => $real_ssh_key, user => $name, target_dir => '', group => $name}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue