config.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 load balancers
  14. hosts: oo_lb_to_config
  15. vars:
  16. openshift_loadbalancer_frontends: "{{ (openshift_master_api_port | default(8443)
  17. | lib_utils_oo_loadbalancer_frontends(hostvars | lib_utils_oo_select_keys(groups['oo_masters']),
  18. openshift_use_nuage | default(false),
  19. nuage_mon_rest_server_port | default(none)))
  20. + openshift_loadbalancer_additional_frontends | default([]) }}"
  21. openshift_loadbalancer_backends: "{{ (openshift_master_api_port | default(8443)
  22. | lib_utils_oo_loadbalancer_backends(hostvars | lib_utils_oo_select_keys(groups['oo_masters']),
  23. openshift_use_nuage | default(false),
  24. nuage_mon_rest_server_port | default(none)))
  25. + openshift_loadbalancer_additional_backends | default([]) }}"
  26. openshift_image_tag: "{{ hostvars[groups.oo_first_master.0].openshift_image_tag }}"
  27. roles:
  28. - role: openshift_loadbalancer
  29. - role: tuned
  30. - name: Load Balancer Install Checkpoint End
  31. hosts: all
  32. gather_facts: false
  33. tasks:
  34. - name: Set load balancer install 'Complete'
  35. run_once: true
  36. set_stats:
  37. data:
  38. installer_phase_loadbalancer:
  39. status: "Complete"
  40. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"