summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master/additional_config.yml
blob: 1b3eb268a99e7a6792b9934e31e44be2db6c1027 (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
---
- name: Master Additional Install Checkpoint Start
  hosts: oo_all_hosts
  gather_facts: false
  tasks:
  - name: Set Master Additional install 'In Progress'
    set_stats:
      data:
        installer_phase_master_additional: "In Progress"
      aggregate: false

- name: Additional master configuration
  hosts: oo_first_master
  vars:
    cockpit_plugins: "{{ osm_cockpit_plugins | default(['cockpit-kubernetes']) }}"
    etcd_urls: "{{ openshift.master.etcd_urls }}"
    openshift_master_ha: "{{ groups.oo_masters | length > 1 }}"
    omc_cluster_hosts: "{{ groups.oo_masters | join(' ')}}"
  roles:
  - role: openshift_master_cluster
    when: openshift_master_ha | bool and openshift.master.cluster_method == "pacemaker"
  - role: openshift_examples
    when: openshift_install_examples | default(true, true) | bool
    registry_url: "{{ openshift.master.registry_url }}"
  - role: openshift_hosted_templates
    registry_url: "{{ openshift.master.registry_url }}"
  - role: openshift_manageiq
    when: openshift_use_manageiq | default(false) | bool
  - role: cockpit
    when:
    - openshift.common.is_atomic
    - deployment_type == 'openshift-enterprise'
    - osm_use_cockpit is undefined or osm_use_cockpit | bool
    - openshift.common.deployment_subtype != 'registry'
  - role: flannel_register
    when: openshift_use_flannel | default(false) | bool

- name: Master Additional Install Checkpoint End
  hosts: oo_all_hosts
  gather_facts: false
  tasks:
  - name: Set Master Additional install 'Complete'
    set_stats:
      data:
        installer_phase_master_additional: "Complete"
      aggregate: false