Enable mistral to run under mod_wsgi
Mistral should run under mod_wsgi. Let's do that. Change-Id: Ie98dd5061d92dbc3c15bdd8926b0e3d62cc471f6 Depends-On: I99f83c35eaa892c10deb63e199d22a43f06f5dcc
This commit is contained in:
parent
5fc8d234dd
commit
2faedff2c7
@ -28,8 +28,21 @@ parameters:
|
|||||||
e.g. { mistral-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
|
e.g. { mistral-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
|
||||||
default: {}
|
default: {}
|
||||||
type: json
|
type: json
|
||||||
|
EnableInternalTLS:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
mistral_workers_zero: {equals : [{get_param: MistralWorkers}, 0]}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
ApacheServiceBase:
|
||||||
|
type: ./apache.yaml
|
||||||
|
properties:
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
EnableInternalTLS: {get_param: EnableInternalTLS}
|
||||||
MistralBase:
|
MistralBase:
|
||||||
type: ./mistral-base.yaml
|
type: ./mistral-base.yaml
|
||||||
properties:
|
properties:
|
||||||
@ -47,12 +60,25 @@ outputs:
|
|||||||
- get_attr: [MistralBase, role_data, config_settings]
|
- get_attr: [MistralBase, role_data, config_settings]
|
||||||
- mistral::api::api_workers: {get_param: MistralWorkers}
|
- mistral::api::api_workers: {get_param: MistralWorkers}
|
||||||
mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
|
mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
|
||||||
|
mistral::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
||||||
mistral::policy::policies: {get_param: MistralApiPolicies}
|
mistral::policy::policies: {get_param: MistralApiPolicies}
|
||||||
tripleo.mistral_api.firewall_rules:
|
tripleo.mistral_api.firewall_rules:
|
||||||
'133 mistral':
|
'133 mistral':
|
||||||
dport:
|
dport:
|
||||||
- 8989
|
- 8989
|
||||||
- 13989
|
- 13989
|
||||||
|
mistral::api::service_name: 'httpd'
|
||||||
|
mistral::wsgi::apache::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
|
||||||
|
mistral::wsgi::apache::servername:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('fqdn_$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, MistralApiNetwork]}
|
||||||
|
- if:
|
||||||
|
- mistral_workers_zero
|
||||||
|
- {}
|
||||||
|
- mistral::wsgi::apache::workers: {get_param: MistralWorkers}
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
get_attr: [MistralBase, role_data, service_config_settings]
|
get_attr: [MistralBase, role_data, service_config_settings]
|
||||||
step_config: |
|
step_config: |
|
||||||
@ -69,10 +95,16 @@ outputs:
|
|||||||
grep '\bactive\b'
|
grep '\bactive\b'
|
||||||
when: mistral_api_enabled.rc == 0
|
when: mistral_api_enabled.rc == 0
|
||||||
tags: step0,validation
|
tags: step0,validation
|
||||||
- name: Stop mistral_api service
|
- name: check for mistral_api running under apache (post upgrade)
|
||||||
tags: step1
|
tags: step1
|
||||||
service: name=openstack-mistral-api state=stopped
|
shell: "httpd -t -D DUMP_VHOSTS | grep -q mistral_api_wsgi"
|
||||||
- name: Install openstack-mistral-api package if it was disabled
|
register: mistral_api_apache
|
||||||
tags: step3
|
ignore_errors: true
|
||||||
yum: name=openstack-mistral-api state=latest
|
- name: Stop mistral_api service (running under httpd)
|
||||||
when: mistral_api_enabled.rc != 0
|
tags: step1
|
||||||
|
service: name=httpd state=stopped
|
||||||
|
when: mistral_api_apache.rc == 0
|
||||||
|
- name: Stop and disable mistral_api service (pre-upgrade not under httpd)
|
||||||
|
tags: step1
|
||||||
|
when: mistral_api_enabled.rc == 0
|
||||||
|
service: name=openstack-mistral-api state=stopped enabled=no
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Move Mistral API to use mod_wsgi under Apache.
|
||||||
|
upgrade:
|
||||||
|
- Mistral API systemd service will be stopped and
|
||||||
|
disabled.
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user