aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:43:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:43:55 -0300
commit9c1662aa1110fa3840ac64498e9e7bab9ccd1683 (patch)
tree6b0dfb34d00a5855a6f266d022c2eafb71383c0d /manifests
parent722106daa6f5423a25d8ea0484a5ce9c20ccee17 (diff)
downloadpuppet-nodo-9c1662aa1110fa3840ac64498e9e7bab9ccd1683.tar.gz
puppet-nodo-9c1662aa1110fa3840ac64498e9e7bab9ccd1683.tar.bz2
Manage also the pubkey at ssh_local_key
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/ssh_local_key.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/defines/ssh_local_key.pp b/manifests/defines/ssh_local_key.pp
index b41e618..57bb251 100644
--- a/manifests/defines/ssh_local_key.pp
+++ b/manifests/defines/ssh_local_key.pp
@@ -28,4 +28,16 @@ define ssh_local_key(
},
require => File["${home}/.ssh"],
}
+
+ file { "${home}/.ssh/${dest}.pub":
+ ensure => $ensure,
+ owner => $owner,
+ group => $group,
+ mode => 0400,
+ source => $ensure ? {
+ 'present' => "${source}.pub",
+ default => undef,
+ },
+ require => File["${home}/.ssh"],
+ }
}