From: Mathieu Gagné Date: Thu, 4 Apr 2013 21:53:52 +0000 (-0400) Subject: Add keystone_tenant parameter for api X-Git-Tag: grizzly-eol~15^2~9^2~15 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=44d74d5742db685aeb68b3922a5c01e97ad2e647;p=puppet-modules%2Fpuppet-ceilometer.git Add keystone_tenant parameter for api --- diff --git a/manifests/api.pp b/manifests/api.pp index 0e08193..54d101b 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -7,6 +7,7 @@ class ceilometer::api( $keystone_port = '35357', $keystone_protocol = 'http', $keystone_user = 'ceilometer', + $keystone_tenant = 'services', $keystone_password = false, ) inherits ceilometer { @@ -40,7 +41,7 @@ class ceilometer::api( 'keystone_authtoken/auth_host' : value => $keystone_host; 'keystone_authtoken/auth_port' : value => $keystone_port; 'keystone_authtoken/auth_protocol' : value => $keystone_protocol; - 'keystone_authtoken/admin_tenant_name' : value => 'services'; + 'keystone_authtoken/admin_tenant_name' : value => $keystone_tenant; 'keystone_authtoken/admin_user' : value => $keystone_user; 'keystone_authtoken/admin_password' : value => $keystone_password; } diff --git a/spec/classes/ceilometer_api_spec.rb b/spec/classes/ceilometer_api_spec.rb index 0be0e6c..37e10b1 100644 --- a/spec/classes/ceilometer_api_spec.rb +++ b/spec/classes/ceilometer_api_spec.rb @@ -12,7 +12,8 @@ describe 'ceilometer::api' do :keystone_port => '35357', :keystone_protocol => 'http', :keystone_user => 'ceilometer', - :keystone_password => 'ceilometer-passw0rd' + :keystone_password => 'ceilometer-passw0rd', + :keystone_tenant => 'services' } end @@ -42,7 +43,7 @@ describe 'ceilometer::api' do should contain_ceilometer_config('keystone_authtoken/auth_host').with_value( params[:keystone_host] ) should contain_ceilometer_config('keystone_authtoken/auth_port').with_value( params[:keystone_port] ) should contain_ceilometer_config('keystone_authtoken/auth_protocol').with_value( params[:keystone_protocol] ) - should contain_ceilometer_config('keystone_authtoken/admin_tenant_name').with_value('services') + should contain_ceilometer_config('keystone_authtoken/admin_tenant_name').with_value( params[:keystone_tenant] ) should contain_ceilometer_config('keystone_authtoken/admin_user').with_value( params[:keystone_user] ) should contain_ceilometer_config('keystone_authtoken/admin_password').with_value( params[:keystone_password] ) end