aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-01 11:05:52 +0000
committerGerrit Code Review <review@openstack.org>2017-03-01 11:05:52 +0000
commit378d831ebf4a160bc470b599e251409fce0b85ef (patch)
treead3bdd798ce6e264acf5d9bfaf4d3d90007dc6f6 /puppet/services
parentea238df9de74d4a0a03521635d75491a5e95448d (diff)
parent489761e848ad4be0eb67bc405968ef2870b81f05 (diff)
Merge "Add etcd composable upgrade steps"
Diffstat (limited to 'puppet/services')
-rw-r--r--puppet/services/etcd.yaml15
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