Merge "Add upgrade support for Horizon"
This commit is contained in:
commit
8728c06bf4
@ -54,6 +54,7 @@ parameter_defaults:
|
|||||||
- OS::TripleO::Services::NovaCompute
|
- OS::TripleO::Services::NovaCompute
|
||||||
- OS::TripleO::Services::NovaLibvirt
|
- OS::TripleO::Services::NovaLibvirt
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
|
- OS::TripleO::Services::Horizon
|
||||||
ControllerExtraConfig:
|
ControllerExtraConfig:
|
||||||
nova::compute::libvirt::services::libvirt_virt_type: qemu
|
nova::compute::libvirt::services::libvirt_virt_type: qemu
|
||||||
nova::compute::libvirt::libvirt_virt_type: qemu
|
nova::compute::libvirt::libvirt_virt_type: qemu
|
||||||
|
@ -96,3 +96,19 @@ outputs:
|
|||||||
- horizon::django_debug: {get_param: Debug}
|
- horizon::django_debug: {get_param: Debug}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::horizon
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user