19aaffaa81
Updating charm to support execution under Python 3. Change-Id: I1429d1c6b634959e0062a8e9f4bc615c58bf31e0
91 lines
2.0 KiB
Plaintext
91 lines
2.0 KiB
Plaintext
[DEFAULT]
|
|
verbose = {{ verbose }}
|
|
use_syslog = {{ use_syslog }}
|
|
debug = {{ debug }}
|
|
workers = {{ workers }}
|
|
bind_host = {{ bind_host }}
|
|
|
|
{% if ext -%}
|
|
bind_port = {{ ext }}
|
|
{% elif bind_port -%}
|
|
bind_port = {{ bind_port }}
|
|
{% else -%}
|
|
bind_port = 9292
|
|
{% endif -%}
|
|
|
|
log_file = /var/log/glance/api.log
|
|
backlog = 4096
|
|
|
|
registry_host = {{ registry_host }}
|
|
registry_port = 9191
|
|
registry_client_protocol = http
|
|
|
|
{% if expose_image_locations -%}
|
|
show_multiple_locations = {{ expose_image_locations }}
|
|
show_image_direct_url = {{ expose_image_locations }}
|
|
{% endif -%}
|
|
|
|
{% if api_config_flags -%}
|
|
{% for key, value in api_config_flags.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
delayed_delete = False
|
|
scrub_time = 43200
|
|
scrubber_datadir = /var/lib/glance/scrubber
|
|
image_cache_dir = /var/lib/glance/image-cache/
|
|
db_enforce_mysql_charset = False
|
|
|
|
[glance_store]
|
|
{%- if use_internal_endpoints %}
|
|
catalog_info = {{ volume_catalog_info }}
|
|
{%- endif %}
|
|
filesystem_store_datadir = /var/lib/glance/images/
|
|
stores = {{ known_stores }}
|
|
{% if rbd_pool -%}
|
|
default_store = rbd
|
|
{% elif swift_store -%}
|
|
default_store = swift
|
|
{% elif cinder_store -%}
|
|
default_store = cinder
|
|
{% else -%}
|
|
default_store = file
|
|
{% endif -%}
|
|
|
|
{% if swift_store -%}
|
|
default_swift_reference = swift
|
|
swift_store_config_file = /etc/glance/glance-swift.conf
|
|
swift_store_create_container_on_put = true
|
|
{% endif -%}
|
|
|
|
{% if rbd_pool -%}
|
|
rbd_store_ceph_conf = /etc/ceph/ceph.conf
|
|
rbd_store_user = {{ rbd_user }}
|
|
rbd_store_pool = {{ rbd_pool }}
|
|
rbd_store_chunk_size = 8
|
|
{% endif -%}
|
|
|
|
[image_format]
|
|
disk_formats = {{ disk_formats }}
|
|
{% if container_formats -%}
|
|
container_formats = {{ container_formats }}
|
|
{% endif -%}
|
|
|
|
{% include "section-keystone-authtoken-mitaka" %}
|
|
|
|
{% if auth_host -%}
|
|
[paste_deploy]
|
|
flavor = keystone
|
|
{% endif %}
|
|
|
|
{% include "parts/section-database" %}
|
|
|
|
{% include "section-rabbitmq-oslo" %}
|
|
|
|
{% include "section-oslo-notifications" %}
|
|
|
|
{% include "section-oslo-middleware" %}
|
|
|
|
{% include "parts/section-storage" %}
|