projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ae5857
)
If we do not have a fact, notify out early
author
Peter Palfrader
<peter@palfrader.org>
Sat, 7 Sep 2019 21:09:20 +0000
(23:09 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 7 Sep 2019 21:09:20 +0000
(23:09 +0200)
modules/ssh/manifests/keygen.pp
patch
|
blob
|
history
diff --git
a/modules/ssh/manifests/keygen.pp
b/modules/ssh/manifests/keygen.pp
index
7f01020
..
29fd063
100644
(file)
--- a/
modules/ssh/manifests/keygen.pp
+++ b/
modules/ssh/manifests/keygen.pp
@@
-4,8
+4,7
@@
define ssh::keygen(
) {
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": }
- }
- if $facts["${user}_user_exists"] {
+ } elsif $facts["${user}_user_exists"] {
if ! $facts["${user}_key"] {
exec { "create-${user}-ssh-key":
command => @("EOF"),