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.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/glance-api.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the Glance API role.
46 service_name: {get_attr: [GlanceApiPuppetBase, role_data, service_name]}
49 - get_attr: [GlanceApiPuppetBase, role_data, config_settings]
50 - glance::api::sync_db: false
51 step_config: &step_config
52 get_attr: [GlanceApiPuppetBase, role_data, step_config]
53 service_config_settings: {get_attr: [GlanceApiPuppetBase, role_data, service_config_settings]}
54 # BEGIN DOCKER SETTINGS #
56 config_volume: glance_api
57 puppet_tags: glance_api_config,glance_api_paste_ini,glance_swift_config,glance_cache_config
58 step_config: *step_config
59 config_image: &glance_image
62 - [ {get_param: DockerNamespace}, {get_param: DockerGlanceApiImage} ]
64 /var/lib/kolla/config_files/glance-api.json:
65 command: /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
67 # Kolla_bootstrap/db_sync runs before permissions set by kolla_config
75 - /var/log/containers/glance:/var/log/glance
76 command: ['/bin/bash', '-c', 'chown -R glance:glance /var/log/glance']
83 volumes: &glance_volumes
85 - {get_attr: [ContainersCommon, volumes]}
87 - /var/lib/kolla/config_files/glance-api.json:/var/lib/kolla/config_files/config.json
88 - /var/lib/config-data/glance_api/etc/glance/:/etc/glance/:ro
89 - /var/log/containers/glance:/var/log/glance
91 - KOLLA_BOOTSTRAP=True
92 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
100 volumes: *glance_volumes
102 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
104 - name: create persistent logs directory
106 path: /var/log/containers/glance
109 - name: Stop and disable glance_api service
111 service: name=openstack-glance-api state=stopped enabled=no