Explorar el Código

Disable firewalld service during adding RHEL worker node

The base OS RHEL with "Minimal" installation option is enabled firewalld serivce by default, it denies unexpected 10250 port.
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1740439
Daein Park hace 5 años
padre
commit
ff962c394f
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      roles/openshift_node/tasks/config.yml

+ 12 - 0
roles/openshift_node/tasks/config.yml

@@ -16,6 +16,18 @@
     sysctl_file: "/etc/sysctl.d/99-openshift.conf"
     reload: yes
 
+# The base OS RHEL with "Minimal" installation option is
+# enabled firewalld serivce by default, it denies unexpected 10250 port.
+# Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1740439
+- name: Disable firewalld service
+  systemd:
+    name: "firewalld.service"
+    enabled: false
+  register: service_status
+  failed_when:
+  - service_status is failed
+  - not ('Could not find the requested service' in service_status.msg)
+
 - name: Setting sebool container_manage_cgroup
   seboolean:
     name: container_manage_cgroup