diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-10-12 13:40:29 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-10-12 13:40:29 +0200 |
commit | 8b45cff69c9ab5f99ef57911a483da5d8bd13c72 (patch) | |
tree | 15a6b2a7664d695306f9db2fb811641579577fb4 /playbooks/common/openshift-etcd/migrate.yml | |
parent | 45725a38dd8ee6db16a89144f1e14c30f98440b8 (diff) | |
download | openshift-8b45cff69c9ab5f99ef57911a483da5d8bd13c72.tar.gz openshift-8b45cff69c9ab5f99ef57911a483da5d8bd13c72.tar.bz2 openshift-8b45cff69c9ab5f99ef57911a483da5d8bd13c72.tar.xz openshift-8b45cff69c9ab5f99ef57911a483da5d8bd13c72.zip |
data migration of embedded etcd not allowed
Diffstat (limited to 'playbooks/common/openshift-etcd/migrate.yml')
-rw-r--r-- | playbooks/common/openshift-etcd/migrate.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/playbooks/common/openshift-etcd/migrate.yml b/playbooks/common/openshift-etcd/migrate.yml index 2456ad3a8..31362f2f6 100644 --- a/playbooks/common/openshift-etcd/migrate.yml +++ b/playbooks/common/openshift-etcd/migrate.yml @@ -1,4 +1,17 @@ --- +- name: Check if the master has embedded etcd + hosts: localhost + connection: local + become: no + gather_facts: no + tags: + - always + tasks: + - fail: + msg: "Migration of an embedded etcd is not supported. Please, migrate the embedded etcd into an external etcd first." + when: + - groups.oo_etcd_to_config | default([]) | length == 0 + - name: Run pre-checks hosts: oo_etcd_to_migrate tasks: @@ -60,12 +73,11 @@ hosts: oo_etcd_to_migrate gather_facts: no pre_tasks: - - set_fact: - l_etcd_service: "{{ 'etcd_container' if openshift.common.is_containerized else 'etcd' }}" - - name: Disable etcd members - service: - name: "{{ l_etcd_service }}" - state: stopped + - include_role: + name: etcd + tasks_from: disable_etcd + vars: + r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}" - name: Migrate data on first etcd hosts: oo_etcd_to_migrate[0] |