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.
28 type: ./mistral-base.yaml
30 ServiceNetMap: {get_param: ServiceNetMap}
31 DefaultPasswords: {get_param: DefaultPasswords}
32 EndpointMap: {get_param: EndpointMap}
36 description: Role data for the Mistral API role.
38 service_name: mistral_api
41 - get_attr: [MistralBase, role_data, config_settings]
42 - mistral::api::api_workers: {get_param: MistralWorkers}
43 mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
44 tripleo.mistral_api.firewall_rules:
49 service_config_settings:
50 get_attr: [MistralBase, role_data, service_config_settings]
52 include ::tripleo::profile::base::mistral::api
54 - name: Check if mistral api is deployed
55 command: systemctl is-enabled openstack-mistral-api
58 register: mistral_api_enabled
59 - name: "PreUpgrade step0,validation: Check if openstack-mistral-api is running"
61 /usr/bin/systemctl show 'openstack-mistral-api' --property ActiveState |
63 when: mistral_api_enabled.rc == 0
64 tags: step0,validation
65 - name: Stop mistral_api service
67 service: name=openstack-mistral-api state=stopped
68 - name: Install openstack-mistral-api package if it was disabled
70 yum: name=openstack-mistral-api state=latest
71 when: mistral_api_enabled.rc != 0