1 heat_template_version: pike
4 OpenStack Glance service configured with Puppet
9 default: 'tripleoupstream'
13 default: 'centos-binary-glance-api:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
43 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
49 type: ./containers-common.yaml
52 type: ../../puppet/services/glance-api.yaml
54 EndpointMap: {get_param: EndpointMap}
55 ServiceNetMap: {get_param: ServiceNetMap}
56 DefaultPasswords: {get_param: DefaultPasswords}
57 RoleName: {get_param: RoleName}
58 RoleParameters: {get_param: RoleParameters}
62 description: Role data for the Glance API role.
64 service_name: {get_attr: [GlanceApiPuppetBase, role_data, service_name]}
67 - get_attr: [GlanceApiPuppetBase, role_data, config_settings]
68 - glance::api::sync_db: false
69 step_config: &step_config
70 get_attr: [GlanceApiPuppetBase, role_data, step_config]
71 service_config_settings: {get_attr: [GlanceApiPuppetBase, role_data, service_config_settings]}
72 # BEGIN DOCKER SETTINGS #
74 config_volume: glance_api
75 puppet_tags: glance_api_config,glance_api_paste_ini,glance_swift_config,glance_cache_config
76 step_config: *step_config
77 config_image: &glance_image
80 - [ {get_param: DockerNamespace}, {get_param: DockerGlanceApiImage} ]
82 /var/lib/kolla/config_files/glance-api.json:
83 command: /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
84 /var/lib/kolla/config_files/glance_api_tls_proxy.json:
85 command: /usr/sbin/httpd -DFOREGROUND
87 # Kolla_bootstrap/db_sync runs before permissions set by kolla_config
95 - /var/log/containers/glance:/var/log/glance
96 command: ['/bin/bash', '-c', 'chown -R glance:glance /var/log/glance']
103 volumes: &glance_volumes
105 - {get_attr: [ContainersCommon, volumes]}
107 - /var/lib/kolla/config_files/glance-api.json:/var/lib/kolla/config_files/config.json
108 - /var/lib/config-data/glance_api/etc/glance/:/etc/glance/:ro
109 - /var/log/containers/glance:/var/log/glance
111 - KOLLA_BOOTSTRAP=True
112 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
121 volumes: *glance_volumes
123 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
125 - internal_tls_enabled
126 - glance_api_tls_proxy:
134 - {get_attr: [ContainersCommon, volumes]}
136 - /var/lib/kolla/config_files/glance_api_tls_proxy.json:/var/lib/kolla/config_files/config.json:ro
137 - /var/lib/config-data/glance_api/etc/httpd/:/etc/httpd/:ro
138 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
139 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
141 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
144 - name: create persistent logs directory
146 path: /var/log/containers/glance
149 - name: Stop and disable glance_api service
151 service: name=openstack-glance-api state=stopped enabled=no