charm-glance/templates/mitaka/glance-swift.conf
James Page 4d1d7f5a3f Fix keystone v3 support with swift backend
Refactor configuration for mitaka onwards, where the
authentication details for swift storage are in a new
glance-swift.conf configuration file.

Update for Keystone v3 support as required for
queens or later, where the v2 API has been dropped.

Closes-Bug: 1752027
Depends-On: Ie6e2733f34de10a4d34b18dbf1fd9ba623af0e18
Change-Id: Ibcc36ca22d72d310921f840e6081608be1fbc7e1
2018-02-28 08:55:08 +00:00

21 lines
655 B
Plaintext

{% if swift_store -%}
[swift]
{% if api_version == "3" -%}
auth_version = 3
auth_address = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v3
{% else -%}
auth_version = 2
auth_address = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v2.0
{% endif -%}
user = {{ admin_tenant_name }}:{{ admin_user }}
key = {{ admin_password }}
{% if api_version == "3" -%}
project_domain_name = {{ admin_domain_name }}
project_domain_id = {{ admin_domain_id }}
user_domain_name = {{ admin_domain_name }}
user_domain_id = {{ admin_domain_id }}
{% endif -%}
container = glance
large_object_size = 5120
large_object_chunk_size = 200
{% endif -%}