diff options
Diffstat (limited to 'playbooks')
| -rw-r--r-- | playbooks/common/openshift-cluster/config.yml | 6 | ||||
| -rw-r--r-- | playbooks/common/openshift-cluster/evaluate_groups.yml | 11 | ||||
| -rw-r--r-- | playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml | 1 | 
3 files changed, 11 insertions, 7 deletions
| diff --git a/playbooks/common/openshift-cluster/config.yml b/playbooks/common/openshift-cluster/config.yml index 961689faf..7874391cc 100644 --- a/playbooks/common/openshift-cluster/config.yml +++ b/playbooks/common/openshift-cluster/config.yml @@ -18,12 +18,6 @@        - docker_image_availability        - docker_storage -- hosts: localhost -  tasks: -  - fail: -      msg: No etcd hosts defined. Running an all-in-one master is deprecated and will no longer be supported in a future upgrade. -    when: groups.oo_etcd_to_config | default([]) | length == 0 and not openshift_master_unsupported_all_in_one | default(False) -  - include: initialize_oo_option_facts.yml    tags:    - always diff --git a/playbooks/common/openshift-cluster/evaluate_groups.yml b/playbooks/common/openshift-cluster/evaluate_groups.yml index a1ae14a1f..c9f37109b 100644 --- a/playbooks/common/openshift-cluster/evaluate_groups.yml +++ b/playbooks/common/openshift-cluster/evaluate_groups.yml @@ -33,13 +33,22 @@    - name: Evaluate groups - g_nfs_hosts is single host      fail:        msg: The nfs group must be limited to one host -    when: (groups[g_nfs_hosts] | default([])) | length > 1 +    when: g_nfs_hosts | default([]) | length > 1    - name: Evaluate groups - g_glusterfs_hosts required      fail:        msg: This playbook requires g_glusterfs_hosts to be set      when: g_glusterfs_hosts is not defined +  - name: Evaluate groups - Fail if no etcd hosts group is defined +    fail: +      msg: > +        No etcd hosts defined. Running an all-in-one master is deprecated and +        will no longer be supported in a future upgrade. +    when: +    - g_etcd_hosts | default([]) | length == 0 +    - not openshift_master_unsupported_all_in_one | default(False) +    - name: Evaluate oo_all_hosts      add_host:        name: "{{ item }}" diff --git a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml index 136ad5362..f76fc68d1 100644 --- a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml +++ b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml @@ -15,6 +15,7 @@    - name: Confirm OpenShift authorization objects are in sync      command: >        {{ openshift.common.client_binary }} adm migrate authorization +    when: not openshift.common.version_gte_3_7 | bool      changed_when: false      register: l_oc_result      until: l_oc_result.rc == 0 | 
