Move glance store options to [glance_store] section

Juno moves the store options under a new section called [glance_store],
this change updates glance-api.conf to reflect that.

Change-Id: Ie4b2484fd48f81add75781616945e1d13b765eaa
Closes-Bug: #1399423
This commit is contained in:
Matt Thompson 2014-12-09 15:23:26 +00:00
parent 48999a74f5
commit b400a4eb6b

View File

@ -3,11 +3,6 @@ verbose = {{ verbose }}
debug = {{ debug }}
log_file = /var/log/glance/glance-api.log
use_syslog = False
default_store = {{ default_store }}
known_stores = glance.store.filesystem.Store,
glance.store.http.Store,
glance.store.cinder.Store,
glance.store.swift.Store
bind_host = 0.0.0.0
bind_port = 9292
backlog = 4096
@ -33,27 +28,11 @@ rabbit_durable_queues = False
{% endif %}
filesystem_store_datadir = /var/lib/glance/images/
delayed_delete = False
scrub_time = 43200
scrubber_datadir = /var/lib/glance/scrubber/
image_cache_dir = /var/lib/glance/cache/
{% if default_store == "swift" %}
##### STORE OPTIONS #####
swift_store_auth_version = 2
swift_store_auth_address = {{ swift_store_auth_address }}
swift_store_user = {{ swift_store_user }}
swift_store_key = {{ swift_store_key }}
swift_store_region = {{ swift_store_region }}
swift_store_container = {{ swift_store_container }}
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_store_retry_get_count = 5
swift_store_endpoint_type = {{ swift_store_endpoint_type }}
{% endif %}
[database]
connection = mysql://{{ container_mysql_user }}:{{ container_mysql_password }}@{{ mysql_address }}/{{ container_database }}?charset=utf8
@ -79,3 +58,25 @@ check_revocations_for_cached = {{ hostvars[groups['keystone_all'][0]]['keystone_
[paste_deploy]
flavor = {{ flavor }}
[glance_store]
default_store = {{ default_store }}
stores = glance.store.filesystem.Store,
glance.store.http.Store,
glance.store.cinder.Store,
glance.store.swift.Store
{% if default_store == "file" %}
filesystem_store_datadir = /var/lib/glance/images/
{% elif default_store == "swift" %}
swift_store_auth_version = 2
swift_store_auth_address = {{ swift_store_auth_address }}
swift_store_user = {{ swift_store_user }}
swift_store_key = {{ swift_store_key }}
swift_store_region = {{ swift_store_region }}
swift_store_container = {{ swift_store_container }}
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_store_retry_get_count = 5
swift_store_endpoint_type = {{ swift_store_endpoint_type }}
{% endif %}