net_vars_check.yaml 779 B

123456789101112131415161718192021
  1. ---
  2. - name: Check the provider network configuration
  3. fail:
  4. msg: "Flannel SDN requires a dedicated containers data network and can not work over a provider network"
  5. when:
  6. - openshift_openstack_provider_network_name is defined
  7. - openstack_private_data_network_name is defined
  8. - name: Check the flannel network configuration
  9. fail:
  10. msg: "A dedicated containers data network is only supported with Flannel SDN"
  11. when:
  12. - openstack_private_data_network_name is defined
  13. - not openshift_use_flannel|default(False)|bool
  14. - name: Check the kuryr public net configuration
  15. fail:
  16. msg: "kuryr_openstack_public_net_id must be set when using Kuryr SDN"
  17. when:
  18. - openshift_use_kuryr|default(False)|bool
  19. - not kuryr_openstack_public_net_id is defined