summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2015-08-12 15:26:12 +0200
committerLénaïc Huard <lhuard@amadeus.com>2015-08-13 17:09:03 +0200
commitdb0078cd9631d841bef5c176aed18a7907871d1d (patch)
treefe92652b32d317d8d90517b83e3fa015c613374a /roles
parent8d80cf21e73a1015617c9ec8cd183602436e54fa (diff)
downloadopenshift-db0078cd9631d841bef5c176aed18a7907871d1d.tar.gz
openshift-db0078cd9631d841bef5c176aed18a7907871d1d.tar.bz2
openshift-db0078cd9631d841bef5c176aed18a7907871d1d.tar.xz
openshift-db0078cd9631d841bef5c176aed18a7907871d1d.zip
Force SELinux on "enterprise" deployment type
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 5188df973..f9c3d10e9 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -6,6 +6,9 @@
- fail:
msg: This role requres that osn_cluster_dns_ip is set
when: osn_cluster_dns_ip is not defined or not osn_cluster_dns_ip
+- fail:
+ msg: "SELinux is disabled, This deployment type requires that SELinux is enabled."
+ when: (not ansible_selinux or ansible_selinux.status != 'enabled') and deployment_type in ['enterprise', 'online']
- name: Install OpenShift Node package
yum: pkg=openshift-node state=present