config.yml 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. - name: Metrics Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set Metrics install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_metrics:
  11. status: "In Progress"
  12. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  13. - name: OpenShift Metrics
  14. hosts: oo_first_master
  15. roles:
  16. - role: openshift_metrics
  17. # TODO: Remove when master config property is removed
  18. - name: OpenShift Metrics
  19. hosts: oo_masters:!oo_first_master
  20. serial: 1
  21. tasks:
  22. - name: Setup the non-first masters configs
  23. import_role:
  24. name: openshift_metrics
  25. tasks_from: update_master_config.yaml
  26. when: not openshift_version_gte_3_9
  27. - name: Metrics Install Checkpoint End
  28. hosts: all
  29. gather_facts: false
  30. tasks:
  31. - name: Set Metrics install 'Complete'
  32. run_once: true
  33. set_stats:
  34. data:
  35. installer_phase_metrics:
  36. status: "Complete"
  37. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"