unsupported.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. # This task list checks for unsupported configurations. Values here should yield
  3. # a partially functioning cluster but would not be supported for production use.
  4. - name: Ensure that openshift_use_dnsmasq is true
  5. when:
  6. - not openshift_use_dnsmasq | default(true) | bool
  7. fail:
  8. msg: |-
  9. Starting in 3.6 openshift_use_dnsmasq must be true or critical features
  10. will not function. This also means that NetworkManager must be installed
  11. enabled and responsible for management of the primary interface.
  12. - name: Ensure that openshift_node_dnsmasq_install_network_manager_hook is true
  13. when:
  14. - not openshift_node_dnsmasq_install_network_manager_hook | default(true) | bool
  15. fail:
  16. msg: |-
  17. The NetworkManager hook is considered a critical part of the DNS
  18. infrastructure.
  19. - set_fact:
  20. __using_dynamic: True
  21. when:
  22. - hostvars[inventory_hostname][item] in ['dynamic']
  23. with_items:
  24. - "{{ hostvars[inventory_hostname] | vars_with_pattern(pattern='openshift_.*_storage_kind') }}"
  25. - name: Ensure that dynamic provisioning is set if using dynamic storage
  26. when:
  27. - dynamic_volumes_check | default(true) | bool
  28. - not openshift_master_dynamic_provisioning_enabled | default(false) | bool
  29. - not openshift_cloudprovider_kind is defined
  30. - __using_dynamic is defined and __using_dynamic | bool
  31. fail:
  32. msg: |-
  33. Using a storage kind of 'dynamic' without enabling dynamic provisioning nor
  34. setting a cloud provider will cause generated PVCs to not be able to bind as
  35. intended. Either update to not use a dynamic storage or set
  36. openshift_master_dynamic_provisioning_enabled to True and set an
  37. openshift_cloudprovider_kind. You can disable this check with
  38. 'dynamic_volumes_check=False'.