main.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. r_openshift_loadbalancer_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  3. r_openshift_loadbalancer_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  4. openshift_loadbalancer_frontends: "{{ (openshift_master_api_port
  5. | lib_utils_oo_loadbalancer_frontends(hostvars | lib_utils_oo_select_keys(groups['oo_masters']),
  6. openshift_use_nuage | default(false),
  7. nuage_mon_rest_server_port | default(none)))
  8. + openshift_loadbalancer_additional_frontends | default([]) }}"
  9. openshift_loadbalancer_backends: "{{ (openshift_master_api_port
  10. | lib_utils_oo_loadbalancer_backends(hostvars | lib_utils_oo_select_keys(groups['oo_masters']),
  11. openshift_use_nuage | default(false),
  12. nuage_mon_rest_server_port | default(none)))
  13. + openshift_loadbalancer_additional_backends | default([]) }}"
  14. r_openshift_loadbalancer_os_firewall_deny: []
  15. r_openshift_loadbalancer_os_firewall_allow:
  16. - service: haproxy stats
  17. port: "9000/tcp"
  18. - service: haproxy balance
  19. port: "{{ openshift_master_api_port }}/tcp"
  20. - service: nuage mon
  21. port: "{{ nuage_mon_rest_server_port | default(9443) }}/tcp"
  22. cond: "{{ r_openshift_lb_use_nuage | bool }}"
  23. openshift_docker_service_name: "{{ 'container-engine' if (openshift_docker_use_system_container | default(False) | bool) else 'docker' }}"
  24. # NOTE
  25. # r_openshift_lb_use_nuage_default may be defined external to this role.
  26. # openshift_use_nuage, if defined, may affect other roles or play behavior.
  27. r_openshift_lb_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  28. r_openshift_lb_use_nuage: "{{ r_openshift_lb_use_nuage_default }}"