diff options
author | Carlos Camacho <ccamacho@redhat.com> | 2017-02-26 21:27:18 +0100 |
---|---|---|
committer | Marios Andreou <marios@redhat.com> | 2017-03-01 11:46:54 +0000 |
commit | a27b97db545f7d416ab9b3010ccc43f3e03fee4b (patch) | |
tree | f2967159fe4cef74e1d441fff6f7a65cccc6250d | |
parent | 1ab18342023458c58e6771b94c22ede89c917af3 (diff) |
Add etcd composable upgrade steps
Adding etcd upgrade tasks
Change-Id: Ie891a1a03585b3aec1ed30c176b5fb6b67d7e4b7
(cherry picked from commit 489761e848ad4be0eb67bc405968ef2870b81f05)
-rw-r--r-- | puppet/services/etcd.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/services/etcd.yaml b/puppet/services/etcd.yaml index f96fa723..ec87a75a 100644 --- a/puppet/services/etcd.yaml +++ b/puppet/services/etcd.yaml @@ -56,3 +56,18 @@ outputs: - 2380 step_config: | include ::tripleo::profile::base::etcd + upgrade_tasks: + - name: Check if etcd is deployed + command: systemctl is-enabled etcd + tags: step0,validation + ignore_errors: True + register: etcd_enabled + - name: "PreUpgrade step0,validation: Check if etcd is running" + shell: > + /usr/bin/systemctl show 'etcd' --property ActiveState | + grep '\bactive\b' + when: etcd_enabled.rc == 0 + tags: step0,validation + - name: Stop etcd service + tags: step2 + service: name=etcd state=stopped |