79 lines
2.9 KiB
Plaintext
79 lines
2.9 KiB
Plaintext
<%= node["openstack"]["image"]["custom_template_banner"] %>
|
|
|
|
[DEFAULT]
|
|
# Show more verbose log output (sets INFO log level output)
|
|
verbose = <%= node["openstack"]["image"]["verbose"] %>
|
|
|
|
# Show debugging output in logs (sets DEBUG log level output)
|
|
debug = <%= node["openstack"]["image"]["debug"] %>
|
|
|
|
# Address to bind the registry server
|
|
bind_host = <%= @registry_bind_address %>
|
|
|
|
# Port the bind the registry server to
|
|
bind_port = <%= @registry_bind_port %>
|
|
|
|
# Backlog requests when creating socket
|
|
backlog = 4096
|
|
|
|
# API to use for accessing data. Default value points to sqlalchemy
|
|
# package.
|
|
data_api = <%= node["openstack"]["image"]["data_api"] %>
|
|
|
|
# SQLAlchemy connection string for the reference implementation
|
|
# registry server. Any valid SQLAlchemy connection string is fine.
|
|
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
|
|
sql_connection = <%= @sql_connection %>
|
|
|
|
# Period in seconds after which SQLAlchemy should reestablish its connection
|
|
# to the database.
|
|
#
|
|
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
|
|
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
|
|
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
|
|
# before MySQL can drop the connection.
|
|
sql_idle_timeout = 3600
|
|
|
|
# Limit the api to return `param_limit_max` items in a call to a container. If
|
|
# a larger `limit` query param is provided, it will be reduced to this value.
|
|
api_limit_max = 1000
|
|
|
|
# If a `limit` query param is not provided in an api request, it will
|
|
# default to `limit_param_default`
|
|
limit_param_default = 25
|
|
|
|
# ================= Syslog Options ============================
|
|
|
|
<% if node["openstack"]["image"]["syslog"]["use"] %>
|
|
log_config = /etc/openstack/logging.conf
|
|
<% else %>
|
|
# Log to this file. Make sure you do not set the same log
|
|
# file for both the API and registry servers!
|
|
log_file = /var/log/glance/registry.log
|
|
<% end %>
|
|
|
|
# ================= SSL Options ===============================
|
|
|
|
# Certificate file to use when starting registry server securely
|
|
# cert_file = /path/to/certfile
|
|
|
|
# Private key file to use when starting registry server securely
|
|
# key_file = /path/to/keyfile
|
|
|
|
# ================= Keystone authtoken ===============================
|
|
[keystone_authtoken]
|
|
auth_uri = <%= @auth_uri %>
|
|
auth_host = <%= @identity_admin_endpoint.host %>
|
|
auth_port = <%= @identity_admin_endpoint.port %>
|
|
auth_protocol = <%= @identity_admin_endpoint.scheme %>
|
|
<% if node['openstack']['image']['registry']['auth']['version'] != 'v2.0' %>
|
|
auth_version = <%= node['openstack']['image']['registry']['auth']['version'] %>
|
|
<% end %>
|
|
admin_tenant_name = <%= node["openstack"]["image"]["service_tenant_name"] %>
|
|
admin_user = <%= node["openstack"]["image"]["service_user"] %>
|
|
admin_password = <%= @service_pass %>
|
|
signing_dir = <%= node["openstack"]["image"]["registry"]["auth"]["cache_dir"] %>
|
|
|
|
[paste_deploy]
|
|
flavor = keystone
|