1 heat_template_version: ocata
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: ../../puppet/services/glance-api.yaml
35 EndpointMap: {get_param: EndpointMap}
36 ServiceNetMap: {get_param: ServiceNetMap}
37 DefaultPasswords: {get_param: DefaultPasswords}
41 description: Role data for the Glance API role.
43 service_name: {get_attr: [GlanceApiPuppetBase, role_data, service_name]}
46 - get_attr: [GlanceApiPuppetBase, role_data, config_settings]
47 - glance::api::sync_db: false
48 step_config: &step_config
49 get_attr: [GlanceApiPuppetBase, role_data, step_config]
50 service_config_settings: {get_attr: [GlanceApiPuppetBase, role_data, service_config_settings]}
51 # BEGIN DOCKER SETTINGS #
52 docker_image: &glance_image
55 - [ {get_param: DockerNamespace}, {get_param: DockerGlanceApiImage} ]
57 config_volume: glance_api
58 puppet_tags: glance_api_config,glance_api_paste_ini,glance_swift_config,glance_cache_config
59 step_config: *step_config
60 config_image: *glance_image
62 /var/lib/kolla/config_files/glance-api.json:
63 command: /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
65 - dest: /etc/glance/glance-api.conf
68 source: /var/lib/kolla/config_files/src/etc/glance/glance-api.conf
69 - dest: /etc/glance/glance-swift.conf
72 source: /var/lib/kolla/config_files/src/etc/glance/glance-swift.conf
80 volumes: &glance_volumes
81 - /var/lib/kolla/config_files/glance-api.json:/var/lib/kolla/config_files/config.json
82 - /etc/localtime:/etc/localtime:ro
83 - /lib/modules:/lib/modules:ro
84 - /var/lib/config-data/glance_api/:/var/lib/kolla/config_files/src:ro
87 - /etc/hosts:/etc/hosts:ro
89 - KOLLA_BOOTSTRAP=True
90 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
97 volumes: *glance_volumes
99 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
101 - name: Stop and disable glance_api service
103 service: name=openstack-glance-api state=stopped enabled=no