Disable selinux on RHEL case 01/19601/2
authorYolanda Robla Mota <yroblamo@redhat.com>
Thu, 25 Aug 2016 13:52:32 +0000 (15:52 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 1 Sep 2016 07:27:11 +0000 (07:27 +0000)
This is causing several puppet moduels to fail (for example
rabbit not starting). Set that to permissive as a workaround,
but with the intention of fixing the configuration and enabling
selinux on next steps.

Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I34b388792699a9563dacedf87dd6ff85e482e431

prototypes/puppet-infracloud/modules/opnfv/manifests/compute.pp
prototypes/puppet-infracloud/modules/opnfv/manifests/controller.pp

index ca548a5..77908c0 100644 (file)
@@ -8,6 +8,14 @@ class opnfv::compute (
   $controller_public_address,
   $virt_type = 'kvm',
 ) {
+  # disable selinux if needed
+  if $::osfamily == 'RedHat' {
+    class { 'selinux':
+      mode   => 'permissive',
+      before => Class['::infracloud::compute'],
+    }
+  }
+
   class { '::infracloud::compute':
     nova_rabbit_password          => $nova_rabbit_password,
     neutron_rabbit_password       => $neutron_rabbit_password,
index 7522692..4bae42c 100644 (file)
@@ -30,6 +30,14 @@ class opnfv::controller (
   $opnfv_password,
   $opnfv_email = 'opnfvuser@gmail.com',
 ) {
+  # disable selinux if needed
+  if $::osfamily == 'RedHat' {
+    class { 'selinux':
+      mode   => 'permissive',
+      before => Class['::infracloud::controller'],
+    }
+  }
+
   class { '::infracloud::controller':
     keystone_rabbit_password         => $keystone_rabbit_password,
     neutron_rabbit_password          => $neutron_rabbit_password,