85 lines
2.3 KiB
Plaintext
85 lines
2.3 KiB
Plaintext
[DEFAULT]
|
|
verbose = True
|
|
debug = True
|
|
{% if rbd_pool %}
|
|
default_store = rbd
|
|
{% elif swift_store %}
|
|
default_store = swift
|
|
{% else %}
|
|
default_store = file
|
|
{% endif %}
|
|
bind_host = 0.0.0.0
|
|
{% if bind_port %}
|
|
bind_port = {{ bind_port }}
|
|
{% else %}
|
|
bind_port = 9292
|
|
{% endif %}
|
|
log_file = /var/log/glance/api.log
|
|
backlog = 4096
|
|
workers = 0
|
|
use_syslog = False
|
|
registry_host = 0.0.0.0
|
|
registry_port = 9191
|
|
registry_client_protocol = http
|
|
notifier_strategy = noop
|
|
rabbit_host = localhost
|
|
rabbit_port = 5672
|
|
rabbit_use_ssl = false
|
|
rabbit_userid = guest
|
|
rabbit_password = guest
|
|
rabbit_virtual_host = /
|
|
rabbit_notification_exchange = glance
|
|
rabbit_notification_topic = glance_notifications
|
|
qpid_notification_exchange = glance
|
|
qpid_notification_topic = glance_notifications
|
|
qpid_host = localhost
|
|
qpid_port = 5672
|
|
qpid_username =
|
|
qpid_password =
|
|
qpid_sasl_mechanisms =
|
|
qpid_reconnect_timeout = 0
|
|
qpid_reconnect_limit = 0
|
|
qpid_reconnect_interval_min = 0
|
|
qpid_reconnect_interval_max = 0
|
|
qpid_reconnect_interval = 0
|
|
qpid_heartbeat = 5
|
|
qpid_protocol = tcp
|
|
qpid_tcp_nodelay = True
|
|
filesystem_store_datadir = /var/lib/glance/images/
|
|
swift_store_auth_version = 2
|
|
{% if swift_store %}
|
|
swift_store_auth_address = http://{{ 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
|
|
{% else %}
|
|
swift_store_auth_address = 127.0.0.1:35357/v2.0/
|
|
swift_store_user = jdoe:jdoe
|
|
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
|
|
swift_store_create_container_on_put = False
|
|
{% endif %}
|
|
swift_store_container = glance
|
|
swift_store_large_object_size = 5120
|
|
swift_store_large_object_chunk_size = 200
|
|
swift_enable_snet = False
|
|
s3_store_host = 127.0.0.1:8080/v1.0/
|
|
s3_store_access_key = <20-char AWS access key>
|
|
s3_store_secret_key = <40-char AWS secret key>
|
|
s3_store_bucket = <lowercased 20-char aws access key>glance
|
|
s3_store_create_bucket_on_put = False
|
|
{% 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 %}
|
|
delayed_delete = False
|
|
scrub_time = 43200
|
|
scrubber_datadir = /var/lib/glance/scrubber
|
|
image_cache_dir = /var/lib/glance/image-cache/
|
|
|
|
{% if auth_host %}
|
|
[paste_deploy]
|
|
flavor = keystone
|
|
{% endif %}
|