X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=puppet%2Fservices%2Fetcd.yaml;fp=puppet%2Fservices%2Fetcd.yaml;h=ec87a75a7163ec5981e15bf124dd14010c2e8f2a;hb=489761e848ad4be0eb67bc405968ef2870b81f05;hp=f96fa72379d9c529c4cde8b0323f521e032016b7;hpb=3ebe390a3887909b87a4d367746a9c8dbfbe1d09;p=apex-tripleo-heat-templates.git 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