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
44 type: ./containers-common.yaml
47 type: ../../puppet/services/ironic-api.yaml
49 EndpointMap: {get_param: EndpointMap}
50 ServiceNetMap: {get_param: ServiceNetMap}
51 DefaultPasswords: {get_param: DefaultPasswords}
52 RoleName: {get_param: RoleName}
53 RoleParameters: {get_param: RoleParameters}
57 description: Role data for the Ironic API role.
59 service_name: {get_attr: [IronicApiBase, role_data, service_name]}
62 - get_attr: [IronicApiBase, role_data, config_settings]
63 step_config: &step_config
64 get_attr: [IronicApiBase, role_data, step_config]
65 service_config_settings: {get_attr: [IronicApiBase, role_data, service_config_settings]}
66 # BEGIN DOCKER SETTINGS
69 puppet_tags: ironic_config
70 step_config: *step_config
74 - [ {get_param: DockerNamespace}, {get_param: DockerIronicConfigImage} ]
76 /var/lib/kolla/config_files/ironic_api.json:
77 command: /usr/bin/ironic-api
79 - path: /var/log/ironic
83 # db sync runs before permissions set by kolla_config
90 - [ {get_param: DockerNamespace}, {get_param: DockerIronicApiImage} ]
94 - /var/log/containers/ironic:/var/log/ironic
95 command: ['/bin/bash', '-c', 'chown -R ironic:ironic /var/log/ironic']
104 - {get_attr: [ContainersCommon, volumes]}
106 - /var/lib/config-data/ironic/etc/:/etc/:ro
107 - /var/log/containers/ironic:/var/log/ironic
108 command: ['ironic-dbsync', '--config-file', '/etc/ironic/ironic.conf']
118 - {get_attr: [ContainersCommon, volumes]}
120 - /var/lib/kolla/config_files/ironic_api.json:/var/lib/kolla/config_files/config.json:ro
121 - /var/lib/config-data/ironic/etc/:/etc/:ro
122 - /var/log/containers/ironic:/var/log/ironic
124 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
126 - name: create persistent logs directory
128 path: /var/log/containers/ironic
131 - name: Stop and disable ironic_api service
133 service: name=openstack-ironic-api state=stopped enabled=no