1 heat_template_version: pike
4 OpenStack containerized Cinder API service
9 default: 'tripleoupstream'
13 default: 'centos-binary-cinder-api:latest'
15 # we configure all cinder services in the same cinder base container
16 DockerCinderConfigImage:
18 default: 'centos-binary-cinder-api:latest'
22 description: Mapping of service endpoint -> protocol. Typically set
23 via parameter_defaults in the resource registry.
27 description: Mapping of service_name -> network name. Typically set
28 via parameter_defaults in the resource registry. This
29 mapping overrides those in ServiceNetMapDefaults.
36 description: Role name on which the service is applied
40 description: Parameters specific to the role
48 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
53 type: ./containers-common.yaml
56 type: ../../puppet/services/cinder-api.yaml
58 EndpointMap: {get_param: EndpointMap}
59 ServiceNetMap: {get_param: ServiceNetMap}
60 DefaultPasswords: {get_param: DefaultPasswords}
61 RoleName: {get_param: RoleName}
62 RoleParameters: {get_param: RoleParameters}
66 description: Role data for the Cinder API role.
68 service_name: {get_attr: [CinderBase, role_data, service_name]}
69 config_settings: {get_attr: [CinderBase, role_data, config_settings]}
70 step_config: &step_config
71 get_attr: [CinderBase, role_data, step_config]
72 service_config_settings: {get_attr: [CinderBase, role_data, service_config_settings]}
73 # BEGIN DOCKER SETTINGS
76 puppet_tags: cinder_config,file,concat,file_line
77 step_config: *step_config
81 - [ {get_param: DockerNamespace}, {get_param: DockerCinderConfigImage} ]
83 /var/lib/kolla/config_files/cinder_api.json:
84 command: /usr/sbin/httpd -DFOREGROUND
86 - path: /var/log/cinder
93 image: &cinder_api_image
96 - [ {get_param: DockerNamespace}, {get_param: DockerCinderApiImage} ]
100 - /var/log/containers/cinder:/var/log/cinder
101 command: ['/bin/bash', '-c', 'chown -R cinder:cinder /var/log/cinder']
103 image: *cinder_api_image
110 - {get_attr: [ContainersCommon, volumes]}
112 - /var/lib/config-data/cinder/etc/cinder/:/etc/cinder/:ro
114 - '/usr/bin/bootstrap_host_exec'
116 - "su cinder -s /bin/bash -c 'cinder-manage db sync'"
119 image: *cinder_api_image
123 # NOTE(mandre) kolla image changes the user to 'cinder', we need it
124 # to be root to run httpd
128 - {get_attr: [ContainersCommon, volumes]}
130 - /var/lib/kolla/config_files/cinder_api.json:/var/lib/kolla/config_files/config.json:ro
131 - /var/lib/config-data/cinder/etc/cinder/:/etc/cinder/:ro
132 - /var/lib/config-data/cinder/etc/httpd/:/etc/httpd/:ro
133 - /var/lib/config-data/cinder/var/www/:/var/www/:ro
134 - /var/log/containers/cinder:/var/log/cinder
137 - internal_tls_enabled
138 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
142 - internal_tls_enabled
143 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
146 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
148 - name: create persistent logs directory
150 path: /var/log/containers/cinder
153 - name: Stop and disable cinder_api service
155 service: name=httpd state=stopped enabled=no