瀏覽代碼

Ensure public net id is configured for Kuryr SDN

This PR ensures the playbook execution will fail soon, at the
prerequisites checkings, if the public net id is not configured when
the Kuryr SDN is used.
Luis Tomas Bolivar 6 年之前
父節點
當前提交
c3c1ea69ed
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      roles/openshift_openstack/tasks/net_vars_check.yaml

+ 7 - 0
roles/openshift_openstack/tasks/net_vars_check.yaml

@@ -12,3 +12,10 @@
   when:
     - openstack_private_data_network_name is defined
     - not openshift_use_flannel|default(False)|bool
+
+- name: Check the kuryr public net configuration
+  fail:
+    msg: "kuryr_openstack_public_net_id must be set when using Kuryr SDN"
+  when:
+    - openshift_use_kuryr|default(False)|bool
+    - not kuryr_openstack_public_net_id is defined