diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-28 15:18:41 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-28 15:18:41 +0000 |
commit | 8728c06bf42b6ec00821a96b3086e7854227755d (patch) | |
tree | 1c6161e790cfb4bb378ccca0bc6bfb1c490ea6e6 /puppet/services | |
parent | 360ca9fe58274044b7b0210a1e11008134126ace (diff) | |
parent | db02313b2869aac0d0ddd41129eb9bebed1a24ad (diff) |
Merge "Add upgrade support for Horizon"
Diffstat (limited to 'puppet/services')
-rw-r--r-- | puppet/services/horizon.yaml | 16 |
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 |