1 heat_template_version: pike
4 OpenStack containerized Mistral Engine service
7 DockerMistralEngineImage:
10 DockerMistralConfigImage:
11 description: The container image to use for the mistral config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
44 type: ./containers-common.yaml
47 type: ../../puppet/services/database/mysql-client.yaml
50 type: ../../puppet/services/mistral-engine.yaml
52 EndpointMap: {get_param: EndpointMap}
53 ServiceData: {get_param: ServiceData}
54 ServiceNetMap: {get_param: ServiceNetMap}
55 DefaultPasswords: {get_param: DefaultPasswords}
56 RoleName: {get_param: RoleName}
57 RoleParameters: {get_param: RoleParameters}
61 description: Role data for the Mistral Engine role.
63 service_name: {get_attr: [MistralBase, role_data, service_name]}
66 - get_attr: [MistralBase, role_data, config_settings]
67 step_config: &step_config
70 - - {get_attr: [MistralBase, role_data, step_config]}
71 - {get_attr: [MySQLClient, role_data, step_config]}
72 service_config_settings: {get_attr: [MistralBase, role_data, service_config_settings]}
73 # BEGIN DOCKER SETTINGS
75 config_volume: mistral
76 puppet_tags: mistral_config
77 step_config: *step_config
78 config_image: {get_param: DockerMistralConfigImage}
80 /var/lib/kolla/config_files/mistral_engine.json:
81 command: /usr/bin/mistral-server --config-file=/etc/mistral/mistral.conf --log-file=/var/log/mistral/engine.log --server=engine
83 - source: "/var/lib/kolla/config_files/src/*"
86 preserve_properties: true
88 - path: /var/log/mistral
89 owner: mistral:mistral
94 image: {get_param: DockerMistralEngineImage}
100 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/mistral_engine.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/mistral/:/var/lib/kolla/config_files/src:ro
105 - /var/log/containers/mistral:/var/log/mistral
107 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
109 - name: create persistent logs directory
111 path: /var/log/containers/mistral
114 - name: Stop and disable mistral_engine service
116 service: name=openstack-mistral-engine state=stopped enabled=no