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.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ./containers-common.yaml
48 type: ../../puppet/services/ironic-api.yaml
50 EndpointMap: {get_param: EndpointMap}
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 Ironic API role.
60 service_name: {get_attr: [IronicApiBase, role_data, service_name]}
63 - get_attr: [IronicApiBase, role_data, config_settings]
64 step_config: &step_config
65 get_attr: [IronicApiBase, role_data, step_config]
66 service_config_settings: {get_attr: [IronicApiBase, role_data, service_config_settings]}
67 # BEGIN DOCKER SETTINGS
70 puppet_tags: ironic_config
71 step_config: *step_config
75 - [ {get_param: DockerNamespace}, {get_param: DockerIronicConfigImage} ]
77 /var/lib/kolla/config_files/ironic_api.json:
78 command: /usr/bin/ironic-api
80 - path: /var/log/ironic
84 # db sync runs before permissions set by kolla_config
91 - [ {get_param: DockerNamespace}, {get_param: DockerIronicApiImage} ]
95 - /var/log/containers/ironic:/var/log/ironic
96 command: ['/bin/bash', '-c', 'chown -R ironic:ironic /var/log/ironic']
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/config-data/ironic/etc/ironic:/etc/ironic:ro
109 - /var/log/containers/ironic:/var/log/ironic
110 command: "/usr/bin/bootstrap_host_exec ironic_api su ironic -s /bin/bash -c 'ironic-dbsync --config-file /etc/ironic/ironic.conf'"
120 - {get_attr: [ContainersCommon, volumes]}
122 - /var/lib/kolla/config_files/ironic_api.json:/var/lib/kolla/config_files/config.json:ro
123 - /var/lib/config-data/ironic/etc/ironic:/etc/ironic:ro
124 - /var/log/containers/ironic:/var/log/ironic
126 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
128 - name: create persistent logs directory
130 path: /var/log/containers/ironic
133 - name: Stop and disable ironic_api service
135 service: name=openstack-ironic-api state=stopped enabled=no