diff options
author | Juan Antonio Osorio Robles <jaosorior@redhat.com> | 2017-03-06 09:56:43 +0200 |
---|---|---|
committer | Emilien Macchi <emilien@redhat.com> | 2017-03-10 23:07:27 +0000 |
commit | 4b1ea2487e7a211128c4413689ecee6f794c5bb6 (patch) | |
tree | de24b0996adf9cb28a6c90ffee1e28f707628b68 /puppet/services/heat-api-cfn.yaml | |
parent | e0d9a896aff7673d135479d097de9b0890fee755 (diff) |
Add upgrade tasks for heat over httpd
Change-Id: Ia7b8c41d4d8135f58661a74a4298f60abb251fbe
Diffstat (limited to 'puppet/services/heat-api-cfn.yaml')
-rw-r--r-- | puppet/services/heat-api-cfn.yaml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/puppet/services/heat-api-cfn.yaml b/puppet/services/heat-api-cfn.yaml index dde0bacf..418f4979 100644 --- a/puppet/services/heat-api-cfn.yaml +++ b/puppet/services/heat-api-cfn.yaml @@ -122,7 +122,16 @@ outputs: shell: /usr/bin/systemctl show 'openstack-heat-api-cfn' --property ActiveState | grep '\bactive\b' when: heat_api_cfn_enabled.rc == 0 tags: step0,validation - - name: Stop heat_api_cfn service + - name: check for heat_api_cfn running under apache (post upgrade) tags: step1 - when: heat_api_cfn_enabled.rc == 0 - service: name=openstack-heat-api-cfn state=stopped + shell: "httpd -t -D DUMP_VHOSTS | grep -q heat_api_cfn_wsgi" + register: heat_api_cfn_apache + ignore_errors: true + - name: Stop heat_api_cfn service (running under httpd) + tags: step1 + service: name=httpd state=stopped + when: "heat_api_cfn_apache.rc == 0" + - name: Stop and disable heat_api_cfn service (pre-upgrade not under httpd) + tags: step1 + when: heat_api_cfn_apache.rc == 0 + service: name=openstack-heat-api-cfn state=stopped enabled=no |