Adds Support for Registry Host
Previously, the openstack::glance class would not allow users to specify an IP address for API to find Registry. This change implements the registry_host parameter to allow users to specify an IP address for API to find the Registry service. Defaults to '0.0.0.0' for backwards compatibility and allow all addresses. Change-Id: I2b330508eb849170ce958c5ed72ce183cf56c38c
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
# [db_host] Host where DB resides. Required.
|
||||
# [keystone_host] Host whre keystone is running. Optional. Defaults to '127.0.0.1'
|
||||
# [sql_idle_timeout] Timeout for SQL to reap connections. Optional. Defaults to '3600'
|
||||
# [registry_host] Address used by API to find the Registry service. Optional. Defaults to '0.0.0.0'
|
||||
# [db_type] Type of sql databse to use. Optional. Defaults to 'mysql'
|
||||
# [db_user] Name of glance DB user. Optional. Defaults to 'glance'
|
||||
# [db_name] Name of glance DB. Optional. Defaults to 'glance'
|
||||
@@ -41,6 +42,7 @@ class openstack::glance (
|
||||
$db_host = '127.0.0.1',
|
||||
$keystone_host = '127.0.0.1',
|
||||
$sql_idle_timeout = '3600',
|
||||
$registry_host = '0.0.0.0',
|
||||
$db_type = 'mysql',
|
||||
$db_user = 'glance',
|
||||
$db_name = 'glance',
|
||||
@@ -64,6 +66,7 @@ class openstack::glance (
|
||||
class { 'glance::api':
|
||||
verbose => $verbose,
|
||||
debug => $debug,
|
||||
registry_host => $registry_host,
|
||||
auth_type => 'keystone',
|
||||
auth_port => '35357',
|
||||
auth_host => $keystone_host,
|
||||
|
@@ -22,6 +22,7 @@ describe 'openstack::glance' do
|
||||
should contain_class('glance::api').with(
|
||||
:verbose => false,
|
||||
:debug => false,
|
||||
:registry_host => '0.0.0.0',
|
||||
:auth_type => 'keystone',
|
||||
:auth_port => '35357',
|
||||
:auth_host => '127.0.1.1',
|
||||
|
Reference in New Issue
Block a user