aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/ec2-api.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/services/ec2-api.yaml')
-rw-r--r--puppet/services/ec2-api.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/puppet/services/ec2-api.yaml b/puppet/services/ec2-api.yaml
index 090e0c4d..70821396 100644
--- a/puppet/services/ec2-api.yaml
+++ b/puppet/services/ec2-api.yaml
@@ -118,7 +118,7 @@ outputs:
upgrade_tasks:
- name: Check if ec2-api is deployed
command: systemctl is-enabled openstack-ec2-api
- tags: step0,validation
+ tags: common
ignore_errors: True
register: ec2_api_enabled
- name: "PreUpgrade step0,validation: Check if openstack-ec2-api is running"
@@ -129,5 +129,10 @@ outputs:
tags: step0,validation
- name: Stop openstack-ec2-api service
tags: step1
+ when: ec2_api_enabled.rc == 0
service: name=openstack-ec2-api state=stopped
+ - name: Install openstack-ec2-api package if it was disabled
+ tags: step3
+ yum: name=openstack-ec2-api state=latest
+ when: ec2_api_enabled.rc != 0