additional_config.yml 1.1 KB

123456789101112131415161718192021222324252627282930
  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. registry_url: "{{ openshift.master.registry_url }}"
  20. when: openshift.common.install_examples | bool
  21. - role: openshift_manageiq
  22. when: openshift.common.use_manageiq | bool
  23. - role: cockpit
  24. when: not openshift.common.is_atomic and ( deployment_type in ['atomic-enterprise','openshift-enterprise'] ) and
  25. (osm_use_cockpit | bool or osm_use_cockpit is undefined )
  26. - role: flannel_register
  27. when: openshift.common.use_flannel | bool