config.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ---
  2. - name: Load Balancer Install Checkpoint Start
  3. hosts: localhost
  4. connection: local
  5. gather_facts: false
  6. tasks:
  7. - name: Set load balancer install 'In Progress'
  8. set_stats:
  9. data:
  10. installer_phase_loadbalancer: "In Progress"
  11. aggregate: false
  12. - name: Configure load balancers
  13. hosts: oo_lb_to_config
  14. vars:
  15. openshift_loadbalancer_frontends: "{{ (openshift_master_api_port | default(8443)
  16. | oo_openshift_loadbalancer_frontends(hostvars | oo_select_keys(groups['oo_masters']),
  17. openshift_use_nuage | default(false),
  18. nuage_mon_rest_server_port | default(none)))
  19. + openshift_loadbalancer_additional_frontends | default([]) }}"
  20. openshift_loadbalancer_backends: "{{ (openshift_master_api_port | default(8443)
  21. | oo_openshift_loadbalancer_backends(hostvars | oo_select_keys(groups['oo_masters']),
  22. openshift_use_nuage | default(false),
  23. nuage_mon_rest_server_port | default(none)))
  24. + openshift_loadbalancer_additional_backends | default([]) }}"
  25. openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
  26. roles:
  27. - role: os_firewall
  28. - role: openshift_loadbalancer
  29. - role: tuned
  30. - name: Load Balancer Install Checkpoint End
  31. hosts: localhost
  32. connection: local
  33. gather_facts: false
  34. tasks:
  35. - name: Set load balancer install 'Complete'
  36. set_stats:
  37. data:
  38. installer_phase_loadbalancer: "Complete"
  39. aggregate: false