1 heat_template_version: ocata
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: ../../puppet/services/ironic-api.yaml
39 EndpointMap: {get_param: EndpointMap}
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
45 description: Role data for the Ironic API role.
47 service_name: {get_attr: [IronicApiBase, role_data, service_name]}
50 - get_attr: [IronicApiBase, role_data, config_settings]
51 step_config: &step_config
52 get_attr: [IronicApiBase, role_data, step_config]
53 service_config_settings: {get_attr: [IronicApiBase, role_data, service_config_settings]}
54 # BEGIN DOCKER SETTINGS
57 puppet_tags: ironic_config
58 step_config: *step_config
62 - [ {get_param: DockerNamespace}, {get_param: DockerIronicConfigImage} ]
64 /var/lib/kolla/config_files/ironic_api.json:
65 command: /usr/bin/ironic-api
72 - [ {get_param: DockerNamespace}, {get_param: DockerIronicApiImage} ]
77 - /var/lib/config-data/ironic/etc/:/etc/:ro
78 - /etc/hosts:/etc/hosts:ro
79 - /etc/localtime:/etc/localtime:ro
80 command: ['ironic-dbsync', '--config-file', '/etc/ironic/ironic.conf']
89 - /var/lib/kolla/config_files/ironic_api.json:/var/lib/kolla/config_files/config.json:ro
90 - /var/lib/config-data/ironic/etc/:/etc/:ro
91 - /etc/hosts:/etc/hosts:ro
92 - /etc/localtime:/etc/localtime:ro
94 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
96 - name: Stop and disable ironic_api service
98 service: name=openstack-ironic-api state=stopped enabled=no