From f880a85ec374c50084ce48b2f60eef15276824c5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 7 Sep 2019 23:09:20 +0200 Subject: [PATCH] If we do not have a fact, notify out early --- modules/ssh/manifests/keygen.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ssh/manifests/keygen.pp b/modules/ssh/manifests/keygen.pp index 7f010206d..29fd063be 100644 --- 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"), -- 2.20.1