diff --git a/manifests/glance.pp b/manifests/glance.pp index a963cd2..2786518 100644 --- a/manifests/glance.pp +++ b/manifests/glance.pp @@ -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', diff --git a/spec/classes/openstack_glance_spec.rb b/spec/classes/openstack_glance_spec.rb index 5d50d2d..007ff01 100644 --- a/spec/classes/openstack_glance_spec.rb +++ b/spec/classes/openstack_glance_spec.rb @@ -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',