summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYolanda Robla Mota <yroblamo@redhat.com>2016-10-06 15:09:47 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-10-07 05:59:02 +0000
commit3dc98e23348d08e5b0a9f31f327695fb065a9029 (patch)
treef8f29b8ec15fed58ada12ef6922bad282867e8e1
parentf7b4623f95303bc6e0c27995dfdde017e408de28 (diff)
Add management of /root/.ssh key
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>
-rw-r--r--prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp b/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp
index 4113c50e6..c4bff0962 100644
--- a/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp
+++ b/prototypes/puppet-infracloud/modules/opnfv/manifests/server.pp
@@ -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'))
}