main.yml 1.4 KB

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