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' } }
34 type: ./mistral-base.yaml
36 ServiceNetMap: {get_param: ServiceNetMap}
37 DefaultPasswords: {get_param: DefaultPasswords}
38 EndpointMap: {get_param: EndpointMap}
42 description: Role data for the Mistral API role.
44 service_name: mistral_api
47 - get_attr: [MistralBase, role_data, config_settings]
48 - mistral::api::api_workers: {get_param: MistralWorkers}
49 mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
50 mistral::policy::policies: {get_param: MistralApiPolicies}
51 tripleo.mistral_api.firewall_rules:
56 service_config_settings:
57 get_attr: [MistralBase, role_data, service_config_settings]
59 include ::tripleo::profile::base::mistral::api
61 - name: Check if mistral api is deployed
62 command: systemctl is-enabled openstack-mistral-api
65 register: mistral_api_enabled
66 - name: "PreUpgrade step0,validation: Check if openstack-mistral-api is running"
68 /usr/bin/systemctl show 'openstack-mistral-api' --property ActiveState |
70 when: mistral_api_enabled.rc == 0
71 tags: step0,validation
72 - name: Stop mistral_api service
74 service: name=openstack-mistral-api state=stopped
75 - name: Install openstack-mistral-api package if it was disabled
77 yum: name=openstack-mistral-api state=latest
78 when: mistral_api_enabled.rc != 0