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