|
@@ -1,6 +1,6 @@
|
|
|
---
|
|
|
- name: Set master facts and determine if external etcd certs need to be generated
|
|
|
- hosts: oo_masters_to_config
|
|
|
+ hosts: oo_first_master:oo_masters_to_config
|
|
|
pre_tasks:
|
|
|
- name: Check for RPM generated config marker file .config_managed
|
|
|
stat:
|
|
@@ -144,7 +144,7 @@
|
|
|
when: etcd_client_certs_missing is defined and etcd_client_certs_missing
|
|
|
|
|
|
- name: Determine if master certificates need to be generated
|
|
|
- hosts: oo_masters_to_config
|
|
|
+ hosts: oo_first_master:oo_masters_to_config
|
|
|
tasks:
|
|
|
- set_fact:
|
|
|
openshift_master_certs_no_etcd:
|
|
@@ -228,7 +228,7 @@
|
|
|
gather_facts: no
|
|
|
tasks:
|
|
|
- set_fact:
|
|
|
- haproxy_backend_servers: "{{ hostvars | oo_select_keys(groups['oo_masters_to_config']) | oo_haproxy_backend_masters }}"
|
|
|
+ haproxy_backend_servers: "{{ hostvars | oo_select_keys(groups['oo_masters']) | oo_haproxy_backend_masters }}"
|
|
|
|
|
|
- name: Configure load balancers
|
|
|
hosts: oo_lb_to_config
|
|
@@ -252,7 +252,7 @@
|
|
|
roles:
|
|
|
- role: openshift_facts
|
|
|
- role: haproxy
|
|
|
- when: groups.oo_masters_to_config | length > 1
|
|
|
+ when: groups.oo_masters | length > 1
|
|
|
|
|
|
- name: Check for cached session secrets
|
|
|
hosts: oo_first_master
|
|
@@ -334,8 +334,8 @@
|
|
|
serial: 1
|
|
|
vars:
|
|
|
sync_tmpdir: "{{ hostvars.localhost.g_master_mktemp.stdout }}"
|
|
|
- openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
|
|
|
- openshift_master_count: "{{ groups.oo_masters_to_config | length }}"
|
|
|
+ openshift_master_ha: "{{ groups.oo_masters | length > 1 }}"
|
|
|
+ openshift_master_count: "{{ groups.oo_masters | length }}"
|
|
|
openshift_master_session_auth_secrets: "{{ hostvars[groups.oo_first_master.0].openshift.master.session_auth_secrets }}"
|
|
|
openshift_master_session_encryption_secrets: "{{ hostvars[groups.oo_first_master.0].openshift.master.session_encryption_secrets }}"
|
|
|
pre_tasks:
|
|
@@ -364,8 +364,8 @@
|
|
|
vars:
|
|
|
cockpit_plugins: "{{ osm_cockpit_plugins | default(['cockpit-kubernetes']) }}"
|
|
|
etcd_urls: "{{ openshift.master.etcd_urls }}"
|
|
|
- openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
|
|
|
- omc_cluster_hosts: "{{ groups.oo_masters_to_config | join(' ')}}"
|
|
|
+ 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"
|