String $user = $name,
) {
if $facts["${user}_user_exists"] == undef {
- notify{"We do not have facters for user ${user} existance and keys -- add it to modules/debian_org/lib/facter/roleaccounts.rb": }
+ notify { "We do not have facters for user ${user} existance and keys -- add it to modules/debian_org/lib/facter/roleaccounts.rb":
+ loglevel => warning,
+ }
} elsif $facts["${user}_user_exists"] {
if ! $facts["${user}_key"] {
exec { "create-${user}-ssh-key":
}
}
} else {
- notify{"User ${user} does not exist on this host. Will not create ssh key": }
+ notify { "User ${user} does not exist on this host. Will not create ssh key":
+ loglevel => warning,
+ }
}
}