1 heat_template_version: pike
4 OpenStack containerized Ironic API service
9 default: 'tripleoupstream'
13 default: 'centos-binary-ironic-api:latest'
15 DockerIronicConfigImage:
16 description: The container image to use for the ironic config_volume
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 - apache::default_vhost: false
65 step_config: &step_config
66 get_attr: [IronicApiBase, role_data, step_config]
67 service_config_settings: {get_attr: [IronicApiBase, role_data, service_config_settings]}
68 # BEGIN DOCKER SETTINGS
71 puppet_tags: ironic_config
72 step_config: *step_config
76 - [ {get_param: DockerNamespace}, {get_param: DockerIronicConfigImage} ]
78 /var/lib/kolla/config_files/ironic_api.json:
79 command: /usr/sbin/httpd -DFOREGROUND
81 - source: "/var/lib/kolla/config_files/src/*"
84 preserve_properties: true
86 - path: /var/log/ironic
90 # db sync runs before permissions set by kolla_config
93 image: &ironic_api_image
96 - [ {get_param: DockerNamespace}, {get_param: DockerIronicApiImage} ]
100 - /var/log/containers/ironic:/var/log/ironic
101 command: ['/bin/bash', '-c', 'chown -R ironic:ironic /var/log/ironic']
105 image: *ironic_api_image
112 - {get_attr: [ContainersCommon, volumes]}
114 - /var/lib/config-data/ironic/etc/ironic:/etc/ironic:ro
115 - /var/log/containers/ironic:/var/log/ironic
116 command: "/usr/bin/bootstrap_host_exec ironic_api su ironic -s /bin/bash -c 'ironic-dbsync --config-file /etc/ironic/ironic.conf'"
120 image: *ironic_api_image
126 - {get_attr: [ContainersCommon, volumes]}
128 - /var/lib/kolla/config_files/ironic_api.json:/var/lib/kolla/config_files/config.json:ro
129 - /var/lib/config-data/puppet-generated/ironic/:/var/lib/kolla/config_files/src:ro
130 - /var/log/containers/ironic:/var/log/ironic
132 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
134 - name: create persistent logs directory
136 path: /var/log/containers/ironic
139 - name: Stop and disable ironic_api service
141 service: name=openstack-ironic-api state=stopped enabled=no