1 heat_template_version: pike
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: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
31 description: The number of workers for the mistral-api.
35 A hash of policies to configure for Mistral API.
36 e.g. { mistral-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
42 type: ./mistral-base.yaml
44 ServiceNetMap: {get_param: ServiceNetMap}
45 DefaultPasswords: {get_param: DefaultPasswords}
46 EndpointMap: {get_param: EndpointMap}
47 RoleName: {get_param: RoleName}
48 RoleParameters: {get_param: RoleParameters}
52 description: Role data for the Mistral API role.
54 service_name: mistral_api
57 - get_attr: [MistralBase, role_data, config_settings]
58 - mistral::api::api_workers: {get_param: MistralWorkers}
59 mistral::api::bind_host: {get_param: [ServiceNetMap, MistralApiNetwork]}
60 mistral::policy::policies: {get_param: MistralApiPolicies}
61 tripleo.mistral_api.firewall_rules:
66 service_config_settings:
67 get_attr: [MistralBase, role_data, service_config_settings]
69 include ::tripleo::profile::base::mistral::api
71 - name: Check if mistral api is deployed
72 command: systemctl is-enabled openstack-mistral-api
75 register: mistral_api_enabled
76 - name: "PreUpgrade step0,validation: Check if openstack-mistral-api is running"
78 /usr/bin/systemctl show 'openstack-mistral-api' --property ActiveState |
80 when: mistral_api_enabled.rc == 0
81 tags: step0,validation
82 - name: Stop mistral_api service
84 service: name=openstack-mistral-api state=stopped
85 - name: Install openstack-mistral-api package if it was disabled
87 yum: name=openstack-mistral-api state=latest
88 when: mistral_api_enabled.rc != 0