before should be depending if there is really an ssh_key set

This commit is contained in:
mh 2008-10-06 20:39:01 +00:00
parent 6379efd84e
commit cee0511ee1

View file

@ -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
}
}