1 heat_template_version: ocata
4 Openstack Mistral API service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
23 description: The number of workers for the mistral-api.
27 A hash of policies to configure for Mistral API.
28 e.g. { mistral-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
36 mistral_workers_zero: {equals : [{get_param: MistralWorkers}, 0]}
42 ServiceNetMap: {get_param: ServiceNetMap}
43 DefaultPasswords: {get_param: DefaultPasswords}
44 EndpointMap: {get_param: EndpointMap}
45 EnableInternalTLS: {get_param: EnableInternalTLS}
47 type: ./mistral-base.yaml
49 ServiceNetMap: {get_param: ServiceNetMap}
50 DefaultPasswords: {get_param: DefaultPasswords}
51 EndpointMap: {get_param: EndpointMap}
55 description: Role data for the Mistral API role.
57 service_name: mistral_api
60 - get_attr: [MistralBase, role_data, config_settings]
61 - mistral::api::api_workers: {get_param: MistralWorkers}
62 mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
63 mistral::wsgi::apache::ssl: {get_param: EnableInternalTLS}
64 mistral::policy::policies: {get_param: MistralApiPolicies}
65 tripleo.mistral_api.firewall_rules:
70 mistral::api::service_name: 'httpd'
71 mistral::wsgi::apache::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
72 mistral::wsgi::apache::servername:
75 "%{hiera('fqdn_$NETWORK')}"
77 $NETWORK: {get_param: [ServiceNetMap, MistralApiNetwork]}
79 - mistral_workers_zero
81 - mistral::wsgi::apache::workers: {get_param: MistralWorkers}
82 service_config_settings:
83 get_attr: [MistralBase, role_data, service_config_settings]
85 include ::tripleo::profile::base::mistral::api
87 - name: Check if mistral api is deployed
88 command: systemctl is-enabled openstack-mistral-api
91 register: mistral_api_enabled
92 - name: "PreUpgrade step0,validation: Check if openstack-mistral-api is running"
94 /usr/bin/systemctl show 'openstack-mistral-api' --property ActiveState |
96 when: mistral_api_enabled.rc == 0
97 tags: step0,validation
98 - name: check for mistral_api running under apache (post upgrade)
100 shell: "httpd -t -D DUMP_VHOSTS | grep -q mistral_api_wsgi"
101 register: mistral_api_apache
103 - name: Stop mistral_api service (running under httpd)
105 service: name=httpd state=stopped
106 when: mistral_api_apache.rc == 0
107 - name: Stop and disable mistral_api service (pre-upgrade not under httpd)
109 when: mistral_api_enabled.rc == 0
110 service: name=openstack-mistral-api state=stopped enabled=no