diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-10 22:31:47 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-10 22:31:47 -0300 |
commit | 722106daa6f5423a25d8ea0484a5ce9c20ccee17 (patch) | |
tree | 63e3aac99b84ee9330a63055b020d4f01f75786e /manifests | |
parent | c9654b44fc9bf8bbbc65a0fc2e32a60613770728 (diff) | |
download | puppet-nodo-722106daa6f5423a25d8ea0484a5ce9c20ccee17.tar.gz puppet-nodo-722106daa6f5423a25d8ea0484a5ce9c20ccee17.tar.bz2 |
Undef source if absent at ssh_local_key
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/defines/ssh_local_key.pp | 5 |
1 files changed, 4 insertions, 1 deletions
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"], } } |