additional_config.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ---
  2. - name: Master Additional Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set Master Additional install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_master_additional:
  11. title: "Master Additional Install"
  12. playbook: "playbooks/openshift-master/additional_config.yml"
  13. status: "In Progress"
  14. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  15. - name: Additional master configuration
  16. hosts: oo_first_master
  17. vars:
  18. cockpit_plugins: "{{ osm_cockpit_plugins | default(['cockpit-kubernetes']) }}"
  19. etcd_urls: "{{ openshift_master_etcd_urls }}"
  20. omc_cluster_hosts: "{{ groups.oo_masters | join(' ')}}"
  21. roles:
  22. # TODO: this is currently required in order to schedule pods onto the masters, but
  23. # should be moved into components once nodes are using dynamic config
  24. - role: openshift_sdn
  25. when: openshift_use_openshift_sdn | default(True) | bool
  26. - role: openshift_project_request_template
  27. when: openshift_project_request_template_manage
  28. - role: openshift_examples
  29. when: openshift_install_examples | default(true) | bool
  30. - role: openshift_cluster_autoscaler
  31. when: openshift_cluster_autoscaler_deploy | default(false) | bool
  32. - role: openshift_manageiq
  33. when: openshift_use_manageiq | default(true) | bool
  34. - role: cockpit
  35. when:
  36. - not openshift_is_atomic | bool
  37. - openshift_deployment_type == 'openshift-enterprise'
  38. - osm_use_cockpit is undefined or osm_use_cockpit | bool
  39. - (openshift_deployment_subtype | default('')) != 'registry'
  40. - role: flannel_register
  41. when: openshift_use_flannel | default(false) | bool
  42. - name: configure vsphere svc account
  43. hosts: oo_first_master
  44. tasks:
  45. - import_role:
  46. name: openshift_cloud_provider
  47. tasks_from: vsphere-svc.yml
  48. when:
  49. - openshift_cloudprovider_kind is defined
  50. - openshift_cloudprovider_kind == 'vsphere'
  51. - openshift_version is version('3.9', '>=')
  52. - name: update vsphere provider master config
  53. hosts: oo_masters_to_config
  54. tasks:
  55. - import_role:
  56. name: openshift_cloud_provider
  57. tasks_from: update-vsphere.yml
  58. when:
  59. - openshift_cloudprovider_kind is defined
  60. - openshift_cloudprovider_kind == 'vsphere'
  61. - name: Master Additional Install Checkpoint End
  62. hosts: all
  63. gather_facts: false
  64. tasks:
  65. - name: Set Master Additional install 'Complete'
  66. run_once: true
  67. set_stats:
  68. data:
  69. installer_phase_master_additional:
  70. status: "Complete"
  71. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"