config.yml 2.0 KB

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