before should be depending if there is really an ssh_key set
This commit is contained in:
parent
6379efd84e
commit
cee0511ee1
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,6 @@ define user::define_user(
|
|||
managehome => true,
|
||||
shell => $real_shell,
|
||||
uid => $uid,
|
||||
before => Class[$ssh_key],
|
||||
}
|
||||
|
||||
case $name {
|
||||
|
@ -63,6 +62,9 @@ define user::define_user(
|
|||
case $ssh_key {
|
||||
'': {}
|
||||
default: {
|
||||
User[$name]{
|
||||
before => Class[$ssh_key],
|
||||
}
|
||||
include $ssh_key
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue