最近公司需要安装openshift,但是机器时内网环境,而且SElinux必须关闭,否则系统不能启动。
所以在网络找了一些资料,当openshift-ansible 检测SELinux时,直接跳过即可
方法如下:
修改 openshift-ansible/roles/openshift_node/tasks/selinux_container_cgroup.yml 文件
- name: Setting sebool container_manage_cgroup
seboolean:
name: container_manage_cgroup
state: yes
persistent: yes
when:
- ansible_selinux
- ansible_selinux.status == 'enabled'
然后重新一遍安装命令
参考链接:https://github.com/openshift/openshift-ansible/issues/9150