Adds Support for Glance Registry MySQL Idle Timeout

Previously, only the glance::api class could manage the sql idle
timeout.  This change allows the sql idle timeout for Glance
Registry to be configurable.

Defaults to '3600' for backwards compatibility with a
`wait_timeout' of 8 hours, after which MySQL will drop idle
connections.

Change-Id: I00d01e77af56384f4d74ab8de4a7d3bbd298e9a2
This commit is contained in:
Daneyon Hansen
2013-07-31 00:54:07 +00:00
parent 65a99f8de7
commit 01caae1e87
2 changed files with 2 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ class openstack::glance (
keystone_user => 'glance',
keystone_password => $user_password,
sql_connection => $sql_connection,
sql_idle_timeout => $sql_idle_timeout,
enabled => $enabled,
}

View File

@@ -45,6 +45,7 @@ describe 'openstack::glance' do
:keystone_user => 'glance',
:keystone_password => 'glance_user_pass',
:sql_connection => 'mysql://glance:glance_db_pass@127.0.0.1/glance',
:sql_idle_timeout => '3600',
:enabled => true
)
should contain_class('glance::backend::file')