aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_local_key.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:31:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:31:47 -0300
commit722106daa6f5423a25d8ea0484a5ce9c20ccee17 (patch)
tree63e3aac99b84ee9330a63055b020d4f01f75786e /manifests/defines/ssh_local_key.pp
parentc9654b44fc9bf8bbbc65a0fc2e32a60613770728 (diff)
downloadpuppet-nodo-722106daa6f5423a25d8ea0484a5ce9c20ccee17.tar.gz
puppet-nodo-722106daa6f5423a25d8ea0484a5ce9c20ccee17.tar.bz2
Undef source if absent at ssh_local_key
Diffstat (limited to 'manifests/defines/ssh_local_key.pp')
-rw-r--r--manifests/defines/ssh_local_key.pp5
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"],
}
}