Disable selinux on RHEL

It is causing troubles on rabbit and linuxbridge, crashing
because permission denied errors. Initially disable it to
have a working cloud, and add the right settings on future
patches to re-enable it.

Change-Id: Ibc3303966e7bc450f9d9dbaa4fce7104fcb90635
This commit is contained in:
Yolanda Robla Mota 2016-08-26 17:10:24 +02:00
parent d96206a4cc
commit 8b0d04ce89
2 changed files with 8 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class infracloud::compute(
br_name => $br_name,
}
### Repos ###
### Repos and selinux ###
case $::osfamily {
'Debian': {
include ::apt
@ -54,6 +54,9 @@ class infracloud::compute(
release => $openstack_release,
package_require => true,
}
class { '::selinux':
mode => 'permissive',
}
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'infracloud' module only supports osfamily Debian or RedHat.")

View File

@ -42,7 +42,7 @@ class infracloud::controller(
br_name => $br_name,
}
### Repos ###
### Repos and selinux ###
case $::osfamily {
'Debian': {
include ::apt
@ -76,6 +76,9 @@ class infracloud::controller(
before => Class['::rabbitmq'],
}
class { '::selinux':
mode => 'permissive',
}
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'infracloud' module only supports osfamily Debian or RedHat.")