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,
|
managehome => true,
|
||||||
shell => $real_shell,
|
shell => $real_shell,
|
||||||
uid => $uid,
|
uid => $uid,
|
||||||
before => Class[$ssh_key],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case $name {
|
case $name {
|
||||||
|
@ -63,6 +62,9 @@ define user::define_user(
|
||||||
case $ssh_key {
|
case $ssh_key {
|
||||||
'': {}
|
'': {}
|
||||||
default: {
|
default: {
|
||||||
|
User[$name]{
|
||||||
|
before => Class[$ssh_key],
|
||||||
|
}
|
||||||
include $ssh_key
|
include $ssh_key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue