1 heat_template_version: pike
4 OpenStack containerized Ironic API service
9 default: 'tripleoupstream'
13 default: 'centos-binary-ironic-api:latest'
15 DockerIronicConfigImage:
17 default: 'centos-binary-ironic-pxe:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
37 type: ./containers-common.yaml
40 type: ../../puppet/services/ironic-api.yaml
42 EndpointMap: {get_param: EndpointMap}
43 ServiceNetMap: {get_param: ServiceNetMap}
44 DefaultPasswords: {get_param: DefaultPasswords}
48 description: Role data for the Ironic API role.
50 service_name: {get_attr: [IronicApiBase, role_data, service_name]}
53 - get_attr: [IronicApiBase, role_data, config_settings]
54 step_config: &step_config
55 get_attr: [IronicApiBase, role_data, step_config]
56 service_config_settings: {get_attr: [IronicApiBase, role_data, service_config_settings]}
57 # BEGIN DOCKER SETTINGS
60 puppet_tags: ironic_config
61 step_config: *step_config
65 - [ {get_param: DockerNamespace}, {get_param: DockerIronicConfigImage} ]
67 /var/lib/kolla/config_files/ironic_api.json:
68 command: /usr/bin/ironic-api
70 - path: /var/log/ironic
74 # db sync runs before permissions set by kolla_config
81 - [ {get_param: DockerNamespace}, {get_param: DockerIronicApiImage} ]
85 - /var/log/containers/ironic:/var/log/ironic
86 command: ['/bin/bash', '-c', 'chown -R ironic:ironic /var/log/ironic']
95 - {get_attr: [ContainersCommon, volumes]}
97 - /var/lib/config-data/ironic/etc/:/etc/:ro
98 - /var/log/containers/ironic:/var/log/ironic
99 command: ['ironic-dbsync', '--config-file', '/etc/ironic/ironic.conf']
109 - {get_attr: [ContainersCommon, volumes]}
111 - /var/lib/kolla/config_files/ironic_api.json:/var/lib/kolla/config_files/config.json:ro
112 - /var/lib/config-data/ironic/etc/:/etc/:ro
113 - /var/log/containers/ironic:/var/log/ironic
115 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
117 - name: create persistent logs directory
119 path: /var/log/containers/ironic
122 - name: Stop and disable ironic_api service
124 service: name=openstack-ironic-api state=stopped enabled=no