diff options
-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], |