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: 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/mistral-executor.yaml
49 EndpointMap: {get_param: EndpointMap}
50 ServiceData: {get_param: ServiceData}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Mistral Executor role.
60 service_name: {get_attr: [MistralBase, role_data, service_name]}
63 - get_attr: [MistralBase, role_data, config_settings]
64 step_config: &step_config
65 get_attr: [MistralBase, role_data, step_config]
66 service_config_settings: {get_attr: [MistralBase, role_data, service_config_settings]}
67 # BEGIN DOCKER SETTINGS
69 config_volume: mistral
70 puppet_tags: mistral_config
71 step_config: *step_config
72 config_image: {get_param: DockerMistralConfigImage}
74 /var/lib/kolla/config_files/mistral_executor.json:
75 command: /usr/bin/mistral-server --config-file=/etc/mistral/mistral.conf --log-file=/var/log/mistral/executor.log --server=executor
77 - source: "/var/lib/kolla/config_files/src/*"
80 preserve_properties: true
82 - path: /var/log/mistral
83 owner: mistral:mistral
88 image: {get_param: DockerMistralExecutorImage}
94 - {get_attr: [ContainersCommon, volumes]}
96 - /var/lib/kolla/config_files/mistral_executor.json:/var/lib/kolla/config_files/config.json:ro
97 - /var/lib/config-data/puppet-generated/mistral/:/var/lib/kolla/config_files/src:ro
99 # FIXME: this is required in order for Nova cells
100 # initialization workflows on the Undercloud. Need to
101 # exclude this on the overcloud for security reasons.
102 - /var/lib/config-data/nova/etc/nova:/etc/nova:ro
103 - /var/log/containers/mistral:/var/log/mistral
105 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
107 - name: create persistent logs directory
109 path: /var/log/containers/mistral
112 - name: Check if mistral executor is deployed
113 command: systemctl is-enabled openstack-mistral-executor
116 register: mistral_executor_enabled
117 - name: "PreUpgrade step0,validation: Check if openstack-mistral-executor is running"
119 /usr/bin/systemctl show 'openstack-mistral-executor' --property ActiveState |
121 when: mistral_executor_enabled.rc == 0
122 tags: step0,validation
123 - name: Stop and disable mistral_executor service
125 when: mistral_executor_enabled.rc == 0
126 service: name=openstack-mistral-executor state=stopped enabled=no