aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/defines')
-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"],
+ }
}