瀏覽代碼

Force SELinux on "enterprise" deployment type

Lénaïc Huard 9 年之前
父節點
當前提交
db0078cd96
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      roles/openshift_node/tasks/main.yml

+ 3 - 0
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