1 heat_template_version: pike
4 OpenStack containerized Mistral Executor service
7 DockerMistralExecutorImage:
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: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
40 type: ./containers-common.yaml
43 type: ../../puppet/services/mistral-executor.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 RoleName: {get_param: RoleName}
49 RoleParameters: {get_param: RoleParameters}
53 description: Role data for the Mistral Executor role.
55 service_name: {get_attr: [MistralBase, role_data, service_name]}
58 - get_attr: [MistralBase, role_data, config_settings]
59 step_config: &step_config
60 get_attr: [MistralBase, role_data, step_config]
61 service_config_settings: {get_attr: [MistralBase, role_data, service_config_settings]}
62 # BEGIN DOCKER SETTINGS
64 config_volume: mistral
65 puppet_tags: mistral_config
66 step_config: *step_config
67 config_image: {get_param: DockerMistralConfigImage}
69 /var/lib/kolla/config_files/mistral_executor.json:
70 command: /usr/bin/mistral-server --config-file=/etc/mistral/mistral.conf --log-file=/var/log/mistral/executor.log --server=executor
72 - source: "/var/lib/kolla/config_files/src/*"
75 preserve_properties: true
77 - path: /var/log/mistral
78 owner: mistral:mistral
83 image: {get_param: DockerMistralExecutorImage}
89 - {get_attr: [ContainersCommon, volumes]}
91 - /var/lib/kolla/config_files/mistral_executor.json:/var/lib/kolla/config_files/config.json:ro
92 - /var/lib/config-data/puppet-generated/mistral/:/var/lib/kolla/config_files/src:ro
94 # FIXME: this is required in order for Nova cells
95 # initialization workflows on the Undercloud. Need to
96 # exclude this on the overcloud for security reasons.
97 - /var/lib/config-data/nova/etc/nova:/etc/nova:ro
98 - /var/log/containers/mistral:/var/log/mistral
100 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
102 - name: create persistent logs directory
104 path: /var/log/containers/mistral
107 - name: Stop and disable mistral_executor service
109 service: name=openstack-mistral-executor state=stopped enabled=no