summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Camacho <ccamacho@redhat.com>2017-02-26 21:27:18 +0100
committerCarlos Camacho <ccamacho@redhat.com>2017-02-28 09:44:40 +0100
commit489761e848ad4be0eb67bc405968ef2870b81f05 (patch)
tree87a3930ae8834bf2ff3da82c22fc56f7b9be1765
parent3ebe390a3887909b87a4d367746a9c8dbfbe1d09 (diff)
Add etcd composable upgrade steps
Adding etcd upgrade tasks Change-Id: Ie891a1a03585b3aec1ed30c176b5fb6b67d7e4b7
-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