diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-02 20:24:18 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-02 20:24:18 +0000 |
commit | 5b8cab7cfdec7aa324ed1b57f2795c9eca3baae4 (patch) | |
tree | 2dec51bb12ecfe9e49c26851767ea2b3235faa26 /puppet/services/haproxy.yaml | |
parent | 6eba4325246351b96996e871aeeab56a03590209 (diff) | |
parent | 53225d57b1c4e3de722f9cdc25eefa9a3dec1e97 (diff) |
Merge "upgrades/validation: only run validation when services exist" into stable/ocata
Diffstat (limited to 'puppet/services/haproxy.yaml')
-rw-r--r-- | puppet/services/haproxy.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/services/haproxy.yaml b/puppet/services/haproxy.yaml index 7c7df34f..bd5b9ef6 100644 --- a/puppet/services/haproxy.yaml +++ b/puppet/services/haproxy.yaml @@ -78,14 +78,22 @@ outputs: step_config: | include ::tripleo::profile::base::haproxy upgrade_tasks: + - name: Check if haproxy is deployed + command: systemctl is-enabled haproxy + tags: common + ignore_errors: True + register: haproxy_enabled - name: "PreUpgrade step0,validation: Check service haproxy is running" shell: /usr/bin/systemctl show 'haproxy' --property ActiveState | grep '\bactive\b' + when: haproxy_enabled.rc == 0 tags: step0,validation - name: Stop haproxy service tags: step2 + when: haproxy_enabled.rc == 0 service: name=haproxy state=stopped - name: Start haproxy service tags: step4 # Needed at step 4 for mysql + when: haproxy_enabled.rc == 0 service: name=haproxy state=started metadata_settings: yaql: |