فهرست منبع

crio: don't configure openshift-sdn when disabled

Patrick Hemmer 7 سال پیش
والد
کامیت
3b0f102746

+ 1 - 0
roles/container_runtime/defaults/main.yml

@@ -47,6 +47,7 @@ r_crio_os_firewall_allow:
 - service: crio
   port: 10010/tcp
 
+r_crio_use_openshift_sdn: "{{ openshift_use_openshift_sdn | default(True) }}"
 
 openshift_docker_is_node_or_master: "{{ True if inventory_hostname in (groups['oo_masters_to_config']|default([])) or inventory_hostname in (groups['oo_nodes_to_config']|default([])) else False | bool }}"
 

+ 1 - 0
roles/container_runtime/tasks/package_crio.yml

@@ -63,6 +63,7 @@
   template:
     dest: /etc/cni/net.d/openshift-sdn.conf
     src: 80-openshift-sdn.conf.j2
+  when: r_crio_use_openshift_sdn | bool
 
 - name: Create /etc/sysconfig/crio-network
   template:

+ 1 - 0
roles/container_runtime/tasks/systemcontainer_crio.yml

@@ -82,6 +82,7 @@
   template:
     dest: /etc/cni/net.d/openshift-sdn.conf
     src: 80-openshift-sdn.conf.j2
+  when: r_crio_use_openshift_sdn | bool
 
 - name: Create /etc/sysconfig/crio-storage
   copy: