Adds Support for Bind Host
Previously, the openstack::glance class would not allow users to specify an IP address to bind Glance service to. This change implements the bind_host parameter to allow users to specify an IP address for binding Glance API and Registry. Defaults to '0.0.0.0' for backwards compatibility and to bind Glance services to all addresses. Change-Id: I1e69df9401b2358b6af531c083850258c3585e41
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
# [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'
|
||||
# [bind_host] Address for binding API and Registry services. 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'
|
||||
@@ -43,6 +44,7 @@ class openstack::glance (
|
||||
$keystone_host = '127.0.0.1',
|
||||
$sql_idle_timeout = '3600',
|
||||
$registry_host = '0.0.0.0',
|
||||
$bind_host = '0.0.0.0',
|
||||
$db_type = 'mysql',
|
||||
$db_user = 'glance',
|
||||
$db_name = 'glance',
|
||||
@@ -67,6 +69,7 @@ class openstack::glance (
|
||||
verbose => $verbose,
|
||||
debug => $debug,
|
||||
registry_host => $registry_host,
|
||||
bind_host => $bind_host,
|
||||
auth_type => 'keystone',
|
||||
auth_port => '35357',
|
||||
auth_host => $keystone_host,
|
||||
@@ -82,6 +85,7 @@ class openstack::glance (
|
||||
class { 'glance::registry':
|
||||
verbose => $verbose,
|
||||
debug => $debug,
|
||||
bind_host => $bind_host,
|
||||
auth_host => $keystone_host,
|
||||
auth_port => '35357',
|
||||
auth_type => 'keystone',
|
||||
|
@@ -23,6 +23,7 @@ describe 'openstack::glance' do
|
||||
:verbose => false,
|
||||
:debug => false,
|
||||
:registry_host => '0.0.0.0',
|
||||
:bind_host => '0.0.0.0',
|
||||
:auth_type => 'keystone',
|
||||
:auth_port => '35357',
|
||||
:auth_host => '127.0.1.1',
|
||||
@@ -36,6 +37,7 @@ describe 'openstack::glance' do
|
||||
should contain_class('glance::registry').with(
|
||||
:verbose => false,
|
||||
:debug => false,
|
||||
:bind_host => '0.0.0.0',
|
||||
:auth_host => '127.0.1.1',
|
||||
:auth_port => '35357',
|
||||
:auth_type => 'keystone',
|
||||
|
Reference in New Issue
Block a user