aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-16 21:28:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-16 21:28:14 -0300
commit112b27aaf92299bf40c95567131854ba6d9e5c49 (patch)
tree000825e556b33fcbd23aeec904bdafd1907e6d1c /manifests
parent3dc5d84016ab7333993e0201073fdfb121b16e39 (diff)
downloadpuppet-nodo-112b27aaf92299bf40c95567131854ba6d9e5c49.tar.gz
puppet-nodo-112b27aaf92299bf40c95567131854ba6d9e5c49.tar.bz2
Ensurable for ssh_folder (2)
Diffstat (limited to 'manifests')
-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 55079f2..2e31bc7 100644
--- a/manifests/defines/ssh_local_key.pp
+++ b/manifests/defines/ssh_local_key.pp
@@ -11,7 +11,10 @@ define ssh_local_key(
home => $home,
owner => $owner,
group => $group,
- ensure => $ensure,
+ ensure => $ensure ? {
+ 'present' => 'directory',
+ default => 'absent',
+ },
}
file { "${home}/.ssh/${dest}":