From 76bc5fabd58eca8a2859d9f3474276c613aeaaff Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 13 Apr 2015 18:06:31 +0000 Subject: Openstack: Make Glance configurable Change-Id: I137bd286b2f8ad6eeb37d34803f9ae41a735e7ec Signed-off-by: Pedro Alvarez Signed-off-by: Francisco Redondo Marchena --- .../usr/share/openstack/glance/glance-registry.conf | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'openstack/usr/share/openstack/glance/glance-registry.conf') diff --git a/openstack/usr/share/openstack/glance/glance-registry.conf b/openstack/usr/share/openstack/glance/glance-registry.conf index a72abf8c..e663148d 100644 --- a/openstack/usr/share/openstack/glance/glance-registry.conf +++ b/openstack/usr/share/openstack/glance/glance-registry.conf @@ -6,7 +6,7 @@ #debug = False # Address to bind the registry server -bind_host = 0.0.0.0 +bind_host = {{ MANAGEMENT_INTERFACE_IP_ADDRESS }} # Port the bind the registry server to bind_port = 9191 @@ -16,7 +16,7 @@ bind_port = 9191 # # If `log_file` is omitted and `use_syslog` is false, then log messages are # sent to stdout as a fallback. -log_file = /var/log/glance/registry.log +# log_file = /var/log/glance/registry.log # Backlog requests when creating socket backlog = 4096 @@ -62,7 +62,7 @@ limit_param_default = 25 # Send logs to syslog (/dev/log) instead of to file specified # by `log_file` -#use_syslog = False +use_syslog = True # Facility to use. If unset defaults to LOG_USER. #syslog_log_facility = LOG_LOCAL1 @@ -141,6 +141,7 @@ qpid_tcp_nodelay = True # Deprecated group/name - [DATABASE]/sql_connection # Deprecated group/name - [sql]/connection #connection = +connection=postgresql://{{ GLANCE_DB_USER }}:{{ GLANCE_DB_PASSWORD }}@{{ CONTROLLER_HOST_ADDRESS }}/glance # The SQL mode to be used for MySQL sessions. This option, # including the default, overrides any server-set SQL mode. To @@ -221,10 +222,11 @@ qpid_tcp_nodelay = True #db_max_retries = 20 [keystone_authtoken] -identity_uri = http://127.0.0.1:35357 -admin_tenant_name = %SERVICE_TENANT_NAME% -admin_user = %SERVICE_USER% -admin_password = %SERVICE_PASSWORD% +auth_uri = http://{{ CONTROLLER_HOST_ADDRESS }}:5000/v2.0 +identity_uri = http://{{ CONTROLLER_HOST_ADDRESS }}:35357 +admin_tenant_name = service +admin_user = {{ GLANCE_SERVICE_USER }} +admin_password = {{ GLANCE_SERVICE_PASSWORD }} [paste_deploy] # Name of the paste configuration file that defines the available pipelines @@ -234,7 +236,7 @@ admin_password = %SERVICE_PASSWORD% # service name removed. For example, if your paste section name is # [pipeline:glance-registry-keystone], you would configure the flavor below # as 'keystone'. -#flavor= +flavor=keystone [profiler] # If False fully disable profiling feature. -- cgit v1.2.1