#
# [*auth_url*]
# (Optional) the keystone public endpoint
-# Defaults to 'http://localhost:5000/v2.0'.
+# Defaults to 'http://localhost:5000'.
#
# [*auth_region*]
# (Optional) the keystone region of this node
#
# [*auth_user_domain_name*]
# (Optional) domain name for auth user.
-# Defaults to $::os_service_default.
+# Defaults to 'Default'.
#
# [*auth_project_domain_name*]
# (Optional) domain name for auth project.
-# Defaults to $::os_service_default.
+# Defaults to 'Default'.
#
# [*auth_type*]
# (Optional) Authentication type to load.
-# Defaults to $::os_service_default.
+# Defaults to 'password'.
#
class ceilometer::agent::auth (
$auth_password,
- $auth_url = 'http://localhost:5000/v2.0',
+ $auth_url = 'http://localhost:5000',
$auth_region = $::os_service_default,
$auth_user = 'ceilometer',
$auth_tenant_name = 'services',
$auth_tenant_id = undef,
$auth_cacert = undef,
$auth_endpoint_type = undef,
- $auth_user_domain_name = $::os_service_default,
- $auth_project_domain_name = $::os_service_default,
- $auth_type = $::os_service_default,
+ $auth_user_domain_name = 'Default',
+ $auth_project_domain_name = 'Default',
+ $auth_type = 'password',
) {
if ! $auth_cacert {
end
let :params do
- { :auth_url => 'http://localhost:5000/v2.0',
+ { :auth_url => 'http://localhost:5000',
:auth_region => '<SERVICE DEFAULT>',
:auth_user => 'ceilometer',
:auth_password => 'password',
shared_examples_for 'ceilometer-agent-auth' do
it 'configures authentication' do
- is_expected.to contain_ceilometer_config('service_credentials/auth_url').with_value('http://localhost:5000/v2.0')
+ is_expected.to contain_ceilometer_config('service_credentials/auth_url').with_value('http://localhost:5000')
is_expected.to contain_ceilometer_config('service_credentials/region_name').with_value('<SERVICE DEFAULT>')
is_expected.to contain_ceilometer_config('service_credentials/username').with_value('ceilometer')
is_expected.to contain_ceilometer_config('service_credentials/password').with_value('password')
is_expected.to contain_ceilometer_config('service_credentials/password').with_value(params[:auth_password]).with_secret(true)
is_expected.to contain_ceilometer_config('service_credentials/project_name').with_value('services')
is_expected.to contain_ceilometer_config('service_credentials/ca_file').with(:ensure => 'absent')
- is_expected.to contain_ceilometer_config('service_credentials/user_domain_name').with_value('<SERVICE DEFAULT>')
- is_expected.to contain_ceilometer_config('service_credentials/project_domain_name').with_value('<SERVICE DEFAULT>')
- is_expected.to contain_ceilometer_config('service_credentials/auth_type').with_value('<SERVICE DEFAULT>')
+ is_expected.to contain_ceilometer_config('service_credentials/user_domain_name').with_value('Default')
+ is_expected.to contain_ceilometer_config('service_credentials/project_domain_name').with_value('Default')
+ is_expected.to contain_ceilometer_config('service_credentials/auth_type').with_value('password')
end
context 'when overriding parameters' do