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