From: Peter Palfrader Date: Sat, 7 Sep 2019 21:09:20 +0000 (+0200) Subject: If we do not have a fact, notify out early X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f880a85ec374c50084ce48b2f60eef15276824c5;p=mirror%2Fdsa-puppet.git If we do not have a fact, notify out early --- 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"),