additional_config.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. - name: create additional node network plugin groups
  3. hosts: "{{ openshift_node_scale_up_group | default('oo_nodes_to_config') }}"
  4. tasks:
  5. # Creating these node groups will prevent a ton of skipped tasks.
  6. # Create group for flannel nodes
  7. - group_by:
  8. key: oo_nodes_use_{{ (openshift_use_flannel | default(False)) | ternary('flannel','nothing') }}
  9. changed_when: False
  10. # Create group for calico nodes
  11. - group_by:
  12. key: oo_nodes_use_{{ (openshift_use_calico | default(False)) | ternary('calico','nothing') }}
  13. changed_when: False
  14. # Create group for nuage nodes
  15. - group_by:
  16. key: oo_nodes_use_{{ (openshift_use_nuage | default(False)) | ternary('nuage','nothing') }}
  17. changed_when: False
  18. # Create group for contiv nodes
  19. - group_by:
  20. key: oo_nodes_use_{{ (openshift_use_contiv | default(False)) | ternary('contiv','nothing') }}
  21. changed_when: False
  22. # Create group for kuryr nodes
  23. - group_by:
  24. key: oo_nodes_use_{{ (openshift_use_kuryr | default(False)) | ternary('kuryr','nothing') }}
  25. changed_when: False
  26. - import_playbook: etcd_client_config.yml
  27. vars:
  28. openshift_node_scale_up_group: "oo_nodes_use_flannel:oo_nodes_use_calico:oo_nodes_use_contiv:oo_nodes_use_kuryr"
  29. - name: Additional node config
  30. hosts: oo_nodes_use_flannel
  31. roles:
  32. - role: flannel
  33. etcd_urls: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_urls }}"
  34. embedded_etcd: "{{ hostvars[groups.oo_first_master.0].openshift.master.embedded_etcd }}"
  35. when: openshift_use_flannel | default(false) | bool
  36. - name: Additional node config
  37. hosts: oo_nodes_use_calico
  38. roles:
  39. - role: calico
  40. when: openshift_use_calico | default(false) | bool
  41. - name: Additional node config
  42. hosts: oo_nodes_use_nuage
  43. roles:
  44. - role: nuage_node
  45. when: openshift_use_nuage | default(false) | bool
  46. - name: Additional node config
  47. hosts: oo_nodes_use_contiv
  48. roles:
  49. - role: contiv
  50. contiv_role: netplugin
  51. when: openshift_use_contiv | default(false) | bool
  52. - name: Configure Kuryr node
  53. hosts: oo_nodes_use_kuryr
  54. tasks:
  55. - include_role:
  56. name: kuryr
  57. tasks_from: node
  58. when: openshift_use_kuryr | default(false) | bool