aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-01 16:42:45 +0000
committerGerrit Code Review <review@openstack.org>2017-03-01 16:42:45 +0000
commitd1b67dae40b9bc7cc5d67be0413437f16b4843ba (patch)
tree8c8e940e7f92ad119963950c0b92fcf20784b49e /puppet
parent0c0339df9c14aa40ff1446871c8d1235529479c6 (diff)
parentdda25e840dd5ab43d5ad6ac924306b9715072bfa (diff)
Merge "Add upgrade support for Horizon" into stable/ocata
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/horizon.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/puppet/services/horizon.yaml b/puppet/services/horizon.yaml
index 2111021b..77983854 100644
--- a/puppet/services/horizon.yaml
+++ b/puppet/services/horizon.yaml
@@ -96,3 +96,19 @@ outputs:
- horizon::django_debug: {get_param: Debug}
step_config: |
include ::tripleo::profile::base::horizon
+ # Ansible tasks to handle upgrade
+ upgrade_tasks:
+ - name: Check if httpd is deployed
+ command: systemctl is-enabled httpd
+ tags: step0,validation
+ ignore_errors: True
+ register: httpd_enabled
+ - name: "PreUpgrade step0,validation: Check if httpd is running"
+ shell: >
+ /usr/bin/systemctl show 'httpd' --property ActiveState |
+ grep '\bactive\b'
+ when: httpd_enabled.rc == 0
+ tags: step0,validation
+ - name: Stop Horizon (under httpd)
+ tags: step2
+ service: name=httpd state=stopped