summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-node/private/additional_config.yml
blob: b86cb3cc20febe6fcf9b3ba9c76eb03b210e15ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
- name: create additional node network plugin groups
  hosts: "{{ openshift_node_scale_up_group | default('oo_nodes_to_config') }}"
  tasks:
  # Creating these node groups will prevent a ton of skipped tasks.
  # Create group for flannel nodes
  - group_by:
      key: oo_nodes_use_{{ (openshift_use_flannel | default(False)) | ternary('flannel','nothing') }}
    changed_when: False
  # Create group for calico nodes
  - group_by:
      key: oo_nodes_use_{{ (openshift_use_calico | default(False)) | ternary('calico','nothing') }}
    changed_when: False
  # Create group for nuage nodes
  - group_by:
      key: oo_nodes_use_{{ (openshift_use_nuage | default(False)) | ternary('nuage','nothing') }}
    changed_when: False
  # Create group for contiv nodes
  - group_by:
      key: oo_nodes_use_{{ (openshift_use_contiv | default(False)) | ternary('contiv','nothing') }}
    changed_when: False
  # Create group for kuryr nodes
  - group_by:
      key: oo_nodes_use_{{ (openshift_use_kuryr | default(False)) | ternary('kuryr','nothing') }}
    changed_when: False

- import_playbook: etcd_client_config.yml
  vars:
    openshift_node_scale_up_group: "oo_nodes_use_flannel:oo_nodes_use_calico:oo_nodes_use_contiv:oo_nodes_use_kuryr"

- name: Additional node config
  hosts: oo_nodes_use_flannel
  roles:
  - role: flannel
    etcd_urls: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_urls }}"
    when: openshift_use_flannel | default(false) | bool

- name: Additional node config
  hosts: oo_nodes_use_calico
  roles:
  - role: calico
    when: openshift_use_calico | default(false) | bool

- name: Additional node config
  hosts: oo_nodes_use_nuage
  roles:
  - role: nuage_node
    when: openshift_use_nuage | default(false) | bool

- name: Additional node config
  hosts: oo_nodes_use_contiv
  roles:
  - role: contiv
    contiv_role: netplugin
    when: openshift_use_contiv | default(false) | bool

- name: Configure Kuryr node
  hosts: oo_nodes_use_kuryr
  tasks:
  - include_role:
      name: kuryr
      tasks_from: node
    when: openshift_use_kuryr | default(false) | bool