main.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. # openshift_master_defaults_in_use is a workaround to detect if we are consuming
  3. # the plays from the role or outside of the role.
  4. openshift_master_defaults_in_use: True
  5. openshift_master_debug_level: "{{ debug_level | default(2) }}"
  6. r_openshift_master_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  7. r_openshift_master_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  8. openshift_node_ips: []
  9. r_openshift_master_clean_install: false
  10. r_openshift_master_etcd3_storage: false
  11. r_openshift_master_os_firewall_enable: true
  12. r_openshift_master_os_firewall_deny: []
  13. r_openshift_master_os_firewall_allow:
  14. - service: api server https
  15. port: "{{ openshift.master.api_port }}/tcp"
  16. - service: api controllers https
  17. port: "{{ openshift.master.controllers_port }}/tcp"
  18. - service: skydns tcp
  19. port: "{{ openshift.master.dns_port }}/tcp"
  20. - service: skydns udp
  21. port: "{{ openshift.master.dns_port }}/udp"
  22. - service: etcd embedded
  23. port: 4001/tcp
  24. cond: "{{ groups.oo_etcd_to_config | default([]) | length == 0 }}"
  25. # oreg_url is defined by user input
  26. oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"
  27. oreg_auth_credentials_path: "{{ r_openshift_master_data_dir }}/.docker"
  28. oreg_auth_credentials_replace: False
  29. l_bind_docker_reg_auth: False
  30. containerized_svc_dir: "/usr/lib/systemd/system"
  31. ha_svc_template_path: "native-cluster"
  32. # NOTE
  33. # r_openshift_master_*_default may be defined external to this role.
  34. # openshift_use_*, if defined, may affect other roles or play behavior.
  35. r_openshift_master_use_openshift_sdn_default: "{{ openshift_use_openshift_sdn | default(True) }}"
  36. r_openshift_master_use_openshift_sdn: "{{ r_openshift_master_use_openshift_sdn_default }}"
  37. r_openshift_master_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  38. r_openshift_master_use_nuage: "{{ r_openshift_master_use_nuage_default }}"
  39. r_openshift_master_use_contiv_default: "{{ openshift_use_contiv | default(False) }}"
  40. r_openshift_master_use_contiv: "{{ r_openshift_master_use_contiv_default }}"
  41. r_openshift_master_data_dir_default: "{{ openshift_data_dir | default('/var/lib/origin') }}"
  42. r_openshift_master_data_dir: "{{ r_openshift_master_data_dir_default }}"
  43. r_openshift_master_sdn_network_plugin_name_default: "{{ os_sdn_network_plugin_name | default('redhat/openshift-ovs-subnet') }}"
  44. r_openshift_master_sdn_network_plugin_name: "{{ r_openshift_master_sdn_network_plugin_name_default }}"
  45. openshift_master_image_config_latest_default: "{{ openshift_image_config_latest | default(False) }}"
  46. openshift_master_image_config_latest: "{{ openshift_master_image_config_latest_default }}"