config.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. - name: etcd Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set etcd install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_etcd:
  11. title: "etcd Install"
  12. playbook: "playbooks/openshift-etcd/config.yml"
  13. status: "In Progress"
  14. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  15. - import_playbook: ca.yml
  16. - import_playbook: certificates.yml
  17. - name: Configure etcd
  18. hosts: oo_etcd_to_config
  19. any_errors_fatal: true
  20. tasks:
  21. - import_role:
  22. name: etcd
  23. tasks_from: set_facts.yml
  24. # Setup etcd as a static pod if collocated with a master
  25. - import_role:
  26. name: etcd
  27. tasks_from: static.yml
  28. vars:
  29. etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
  30. etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
  31. when: inventory_hostname in groups['oo_masters']
  32. - import_role:
  33. name: etcd
  34. tasks_from: rpm.yml
  35. when: not inventory_hostname in groups['oo_masters']
  36. vars:
  37. etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
  38. etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
  39. - name: etcd Install Checkpoint End
  40. hosts: all
  41. gather_facts: false
  42. tasks:
  43. - name: Set etcd install 'Complete'
  44. run_once: true
  45. set_stats:
  46. data:
  47. installer_phase_etcd:
  48. status: "Complete"
  49. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"