The template should probably be better:
{% if swift_store -%} swift_store_auth_version = 2 swift_store_auth_address = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0/ swift_store_user = {{ admin_tenant_name }}:{{ admin_user }} swift_store_key = {{ admin_password }} swift_store_create_container_on_put = True swift_store_container = glance swift_store_large_object_size = 5120 swift_store_large_object_chunk_size = 200 swift_enable_snet = False {% endif -%}
as it relies on keystone data, we might make that conditional on service_host being present as well before writing things out (but that's a low priority change IMHO).
The template should probably be better:
{% if swift_store -%} auth_version = 2 auth_address = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0/ create_ container_ on_put = True container = glance large_object_ size = 5120 large_object_ chunk_size = 200
swift_store_
swift_store_
swift_store_user = {{ admin_tenant_name }}:{{ admin_user }}
swift_store_key = {{ admin_password }}
swift_store_
swift_store_
swift_store_
swift_store_
swift_enable_snet = False
{% endif -%}
as it relies on keystone data, we might make that conditional on service_host being present as well before writing things out (but that's a low priority change IMHO).