main.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. haproxy_frontends:
  5. - name: main
  6. binds:
  7. - "*:{{ openshift_master_api_port | default(8443) }}"
  8. default_backend: default
  9. haproxy_backends:
  10. - name: default
  11. balance: roundrobin
  12. servers:
  13. - name: web01
  14. address: 127.0.0.1:9000
  15. opts: check
  16. r_openshift_loadbalancer_os_firewall_deny: []
  17. r_openshift_loadbalancer_os_firewall_allow:
  18. - service: haproxy stats
  19. port: "9000/tcp"
  20. - service: haproxy balance
  21. port: "{{ openshift_master_api_port | default(8443) }}/tcp"
  22. - service: nuage mon
  23. port: "{{ nuage_mon_rest_server_port | default(9443) }}/tcp"
  24. cond: "{{ r_openshift_lb_use_nuage | bool }}"
  25. openshift_docker_service_name: "{{ 'container-engine' if (openshift_docker_use_system_container | default(False)) else 'docker' }}"
  26. # NOTE
  27. # r_openshift_lb_use_nuage_default may be defined external to this role.
  28. # openshift_use_nuage, if defined, may affect other roles or play behavior.
  29. r_openshift_lb_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  30. r_openshift_lb_use_nuage: "{{ r_openshift_lb_use_nuage_default }}"