additional_config.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. - name: Configure flannel
  2. hosts: oo_first_master
  3. vars:
  4. etcd_urls: "{{ openshift.master.etcd_urls }}"
  5. roles:
  6. - role: flannel_register
  7. when: openshift.common.use_flannel | bool
  8. - name: Additional master configuration
  9. hosts: oo_first_master
  10. vars:
  11. cockpit_plugins: "{{ osm_cockpit_plugins | default(['cockpit-kubernetes']) }}"
  12. etcd_urls: "{{ openshift.master.etcd_urls }}"
  13. openshift_master_ha: "{{ groups.oo_masters | length > 1 }}"
  14. omc_cluster_hosts: "{{ groups.oo_masters | join(' ')}}"
  15. roles:
  16. - role: openshift_master_cluster
  17. when: openshift_master_ha | bool and openshift.master.cluster_method == "pacemaker"
  18. - role: openshift_examples
  19. when: openshift.common.install_examples | bool
  20. - role: openshift_cluster_metrics
  21. when: openshift.common.use_cluster_metrics | bool
  22. - role: openshift_manageiq
  23. when: openshift.common.use_manageiq | bool
  24. - role: cockpit
  25. when: not openshift.common.is_atomic and ( deployment_type in ['atomic-enterprise','openshift-enterprise'] ) and
  26. (osm_use_cockpit | bool or osm_use_cockpit is undefined )
  27. - role: flannel_register
  28. when: openshift.common.use_flannel | bool
  29. - role: pods
  30. when: openshift.common.deployment_type == 'online'
  31. - role: os_env_extras
  32. when: openshift.common.deployment_type == 'online'
  33. - name: Create persistent volumes and create hosted services
  34. hosts: oo_first_master
  35. vars:
  36. attach_registry_volume: "{{ openshift.hosted.registry.storage.kind != None }}"
  37. deploy_infra: "{{ openshift.master.infra_nodes | default([]) | length > 0 }}"
  38. persistent_volumes: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volumes(groups) }}"
  39. persistent_volume_claims: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volume_claims }}"
  40. roles:
  41. - role: openshift_persistent_volumes
  42. when: persistent_volumes | length > 0 or persistent_volume_claims | length > 0
  43. - role: openshift_serviceaccounts
  44. openshift_serviceaccounts_names:
  45. - router
  46. - registry
  47. openshift_serviceaccounts_namespace: default
  48. openshift_serviceaccounts_sccs:
  49. - privileged
  50. - role: openshift_registry
  51. registry_volume_claim: "{{ openshift.hosted.registry.storage.volume.name }}-claim"
  52. when: deploy_infra | bool and attach_registry_volume | bool
  53. - role: openshift_metrics
  54. when: openshift.hosted.metrics.deploy | bool