aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-09-14 11:10:47 +0200
committervarac <varacanero@zeromail.org>2013-09-14 11:10:47 +0200
commitbab96a631337b87dd6f168f663f5b24537f58a5c (patch)
tree50490b9c443825d9c4c6bd2a10ad316a64cd7c9e /manifests
parentea228f2231761cfb404c2bebd4862ca26b132d95 (diff)
downloadpuppet-backupninja-bab96a631337b87dd6f168f663f5b24537f58a5c.tar.gz
puppet-backupninja-bab96a631337b87dd6f168f663f5b24537f58a5c.tar.bz2
sshkeys depend on /root/.ssh
Diffstat (limited to 'manifests')
-rw-r--r--manifests/generate_sshkey.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/generate_sshkey.pp b/manifests/generate_sshkey.pp
index c5e6042..a3008e5 100644
--- a/manifests/generate_sshkey.pp
+++ b/manifests/generate_sshkey.pp
@@ -9,6 +9,13 @@ define backupninja::generate_sshkey(
$public_type = $public[0]
$public_key = $public[1]
+ file { '/root/.ssh':
+ ensure => directory,
+ owner => 'root',
+ group => 'root',
+ mode => '0600';
+ }
+
# install ssh keypair on client
file { "/root/.ssh/$ssh_key_name":
content => $ssh_keys[0],