diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-10-31 10:30:18 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-11-14 08:50:43 -0500 |
commit | a5f4561d8cdfd974705105275f718cee9bb249ad (patch) | |
tree | 99a577131a9309c482feb10502cbcec4515bb81f /playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml | |
parent | 00d007565aff754cb282631f89de93c1c9cc0a46 (diff) | |
download | openshift-a5f4561d8cdfd974705105275f718cee9bb249ad.tar.gz openshift-a5f4561d8cdfd974705105275f718cee9bb249ad.tar.bz2 openshift-a5f4561d8cdfd974705105275f718cee9bb249ad.tar.xz openshift-a5f4561d8cdfd974705105275f718cee9bb249ad.zip |
Add etcd upgrade for RHEL and Fedora
On Fedora we just blindly upgrade to the latest.
On RHEL we do stepwise upgrades 2.0,2.1,2.2,2.3,3.0
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml b/playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml new file mode 100644 index 000000000..30232110e --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/etcd/fedora_tasks.yml @@ -0,0 +1,23 @@ +--- +# F23 GA'd with etcd 2.0, currently has 2.2 in updates +# F24 GA'd with etcd-2.2, currently has 2.2 in updates +# F25 Beta currently has etcd 3.0 +- name: Verify cluster is healthy pre-upgrade + command: "etcdctl --cert-file /etc/etcd/peer.crt --key-file /etc/etcd/peer.key --ca-file /etc/etcd/ca.crt -C https://{{ openshift.common.hostname }}:2379 cluster-health" + +- name: Update etcd + package: + name: "etcd" + state: "latest" + +- name: Restart etcd + service: + name: etcd + state: restarted + +- name: Verify cluster is healthy + command: "etcdctl --cert-file /etc/etcd/peer.crt --key-file /etc/etcd/peer.key --ca-file /etc/etcd/ca.crt -C https://{{ openshift.common.hostname }}:2379 cluster-health" + register: etcdctl + until: etcdctl.rc == 0 + retries: 3 + delay: 10 |