main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. # NOTE
  26. # r_openshift_lb_use_nuage_default may be defined external to this role.
  27. # openshift_use_nuage, if defined, may affect other roles or play behavior.
  28. r_openshift_lb_use_nuage_default: "{{ openshift_use_nuage | default(False) }}"
  29. r_openshift_lb_use_nuage: "{{ r_openshift_lb_use_nuage_default }}"