diff options
author | varac <varacanero@zeromail.org> | 2013-09-14 11:10:47 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-09-14 11:10:47 +0200 |
commit | bab96a631337b87dd6f168f663f5b24537f58a5c (patch) | |
tree | 50490b9c443825d9c4c6bd2a10ad316a64cd7c9e /manifests | |
parent | ea228f2231761cfb404c2bebd4862ca26b132d95 (diff) | |
download | puppet-backupninja-bab96a631337b87dd6f168f663f5b24537f58a5c.tar.gz puppet-backupninja-bab96a631337b87dd6f168f663f5b24537f58a5c.tar.bz2 |
sshkeys depend on /root/.ssh
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/generate_sshkey.pp | 7 |
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], |