summaryrefslogtreecommitdiffstats
path: root/puppet-infracloud/modules/opnfv/manifests
diff options
context:
space:
mode:
authorYolanda Robla Mota <yroblamo@redhat.com>2016-10-14 16:16:50 +0200
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit0ebc507b5147e966f02d677ca7050e8cd1911d88 (patch)
treec0385fa817304b773585c62bdef4fbfccebfe078 /puppet-infracloud/modules/opnfv/manifests
parentb569b6f4728c9447749ce0a7ca4deff16f214b7e (diff)
Disable selinux for RHEL
It is causing some unexpected permission errors if that is enabled. Change-Id: I96c3131a55a1b7c83a655738938645f537ab48f6 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Diffstat (limited to 'puppet-infracloud/modules/opnfv/manifests')
-rw-r--r--puppet-infracloud/modules/opnfv/manifests/server.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet-infracloud/modules/opnfv/manifests/server.pp b/puppet-infracloud/modules/opnfv/manifests/server.pp
index a1e7d5d0..6b608a7a 100644
--- a/puppet-infracloud/modules/opnfv/manifests/server.pp
+++ b/puppet-infracloud/modules/opnfv/manifests/server.pp
@@ -239,5 +239,13 @@ class opnfv::server (
multiple => true,
}
+ # disable selinux in case of RHEL
+ if ($::osfamily == 'RedHat') {
+ class { 'selinux':
+ mode => 'disabled',
+ }
+ }
+
+ # update hosts
create_resources('host', hiera_hash('hosts'))
}