Browse Source

Don't upgrade nodes which only have dedicated etcd

Vadim Rutkovsky 6 years ago
parent
commit
998831e513
1 changed files with 3 additions and 0 deletions
  1. 3 0
      playbooks/common/openshift-cluster/upgrades/pre/config.yml

+ 3 - 0
playbooks/common/openshift-cluster/upgrades/pre/config.yml

@@ -71,6 +71,9 @@
   - role: openshift_facts
   tasks:
   - import_tasks: verify_upgrade_targets.yml
+    vars:
+      dedicated_etcds: "{{ groups['oo_etcd_to_config'] | difference(groups['oo_masters']) }}"
+    when: inventory_hostname not in dedicated_etcds
 
 - name: Verify docker upgrade targets
   hosts: "{{ l_upgrade_docker_target_hosts }}"