diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-01 23:32:37 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-01 23:32:37 +0000 |
commit | 37b7c8eb47e02e207ff4c58384ebc40481dd9cda (patch) | |
tree | 42415e027461726a7622c199d8d4b358a877b935 /puppet | |
parent | 4d4de38ddab4afb78af7cfccabc8b7a481525ef0 (diff) | |
parent | a27b97db545f7d416ab9b3010ccc43f3e03fee4b (diff) |
Merge "Add etcd composable upgrade steps" into stable/ocata
Diffstat (limited to 'puppet')
-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 |