config.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ---
  2. - name: Load Balancer Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set load balancer install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_loadbalancer:
  11. status: "In Progress"
  12. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  13. - name: Configure firewall load balancers
  14. hosts: oo_lb_to_config:!oo_masters_to_config:!oo_nodes_to_config
  15. vars:
  16. openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
  17. roles:
  18. - role: os_firewall
  19. - name: Configure load balancers
  20. hosts: oo_lb_to_config
  21. vars:
  22. openshift_loadbalancer_frontends: "{{ (openshift_master_api_port | default(8443)
  23. | oo_openshift_loadbalancer_frontends(hostvars | oo_select_keys(groups['oo_masters']),
  24. openshift_use_nuage | default(false),
  25. nuage_mon_rest_server_port | default(none)))
  26. + openshift_loadbalancer_additional_frontends | default([]) }}"
  27. openshift_loadbalancer_backends: "{{ (openshift_master_api_port | default(8443)
  28. | oo_openshift_loadbalancer_backends(hostvars | oo_select_keys(groups['oo_masters']),
  29. openshift_use_nuage | default(false),
  30. nuage_mon_rest_server_port | default(none)))
  31. + openshift_loadbalancer_additional_backends | default([]) }}"
  32. openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
  33. roles:
  34. - role: openshift_loadbalancer
  35. - role: tuned
  36. - name: Load Balancer Install Checkpoint End
  37. hosts: all
  38. gather_facts: false
  39. tasks:
  40. - name: Set load balancer install 'Complete'
  41. run_once: true
  42. set_stats:
  43. data:
  44. installer_phase_loadbalancer:
  45. status: "Complete"
  46. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"