Add management of /root/.ssh key 39/22739/2
authorYolanda Robla Mota <yroblamo@redhat.com>
Thu, 6 Oct 2016 13:09:47 +0000 (15:09 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 7 Oct 2016 05:59:02 +0000 (05:59 +0000)
It is generally needed to have this file created,
for next manifests to run properly.

Change-Id: I3ca1dd05a44ecdd6bee9abcfd6ba7fa875022ed4
Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp

index 4113c50..c4bff09 100644 (file)
@@ -216,6 +216,14 @@ class opnfv::server (
     require  => Class['pip'],
   }
 
+  # manage root ssh
+  if ! defined(File['/root/.ssh']) {
+    file { '/root/.ssh':
+      ensure => directory,
+      mode   => '0700',
+    }
+  }
+
   # add hosts entries
   create_resources('host', hiera_hash('hosts'))
 }