From: Silvio Rhatto Date: Fri, 11 Apr 2014 01:31:47 +0000 (-0300) Subject: Undef source if absent at ssh_local_key X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=722106daa6f5423a25d8ea0484a5ce9c20ccee17;p=puppet-nodo.git Undef source if absent at ssh_local_key --- diff --git a/manifests/defines/ssh_local_key.pp b/manifests/defines/ssh_local_key.pp index a84b86c..b41e618 100644 --- a/manifests/defines/ssh_local_key.pp +++ b/manifests/defines/ssh_local_key.pp @@ -22,7 +22,10 @@ define ssh_local_key( owner => $owner, group => $group, mode => 0400, - source => "$source", + source => $ensure ? { + 'present' => $source, + default => undef, + }, require => File["${home}/.ssh"], } }