aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2017-03-02 22:24:52 -0500
committerEmilien Macchi <emilien@redhat.com>2017-03-02 22:24:52 -0500
commit480baa3ce1c344b3279d5fe3292238c996bc856f (patch)
tree94c87278a81a36309c0d88ee09c626d9f188a3e9 /puppet
parentcee8160ee531a7419c954eeeaf672a67417925f0 (diff)
Fix Panko API upgrade process
Upgrade process wasn't consistent and correct. Change-Id: Id1f810d33c2909957be9a2c96d18c96dee939953
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/panko-api.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/puppet/services/panko-api.yaml b/puppet/services/panko-api.yaml
index 254d7c24..eed98257 100644
--- a/puppet/services/panko-api.yaml
+++ b/puppet/services/panko-api.yaml
@@ -87,7 +87,7 @@ outputs:
upgrade_tasks:
- name: Check if httpd is deployed
command: systemctl is-enabled httpd
- tags: step0,validation
+ tags: common
ignore_errors: True
register: httpd_enabled
- name: "PreUpgrade step0,validation: Check if httpd is running"
@@ -99,3 +99,7 @@ outputs:
- name: Stop panko-api service (running under httpd)
tags: step1
service: name=httpd state=stopped
+ when: httpd_enabled.rc == 0
+ - name: Install openstack-panko-api package if it was not installed
+ tags: step3
+ yum: name=openstack-panko-api state=latest