Merge "Fix catalog compilation when not configuring endpoint"
This commit is contained in:
@@ -200,8 +200,10 @@ class trove::keystone::auth (
|
||||
|
||||
$real_service_name = pick($service_name, $auth_name)
|
||||
|
||||
Keystone_user_role["${auth_name}@${tenant}"] ~> Service <| name == 'trove-server' |>
|
||||
Keystone_endpoint["${region}/${real_service_name}"] ~> Service <| name == 'trove-server' |>
|
||||
Keystone_user_role["${auth_name}@${tenant}"] ~> Service <| name == 'trove-server' |>
|
||||
|
||||
Keystone_endpoint<| title == "${region}/${real_service_name}" |>
|
||||
~> Service <| name == 'trove-server' |>
|
||||
|
||||
keystone::resource::service_identity { 'trove':
|
||||
configure_user => true,
|
||||
|
@@ -130,4 +130,12 @@ describe 'trove::keystone::auth' do
|
||||
it { is_expected.to contain_keystone_endpoint('RegionOne/trove_service') }
|
||||
end
|
||||
|
||||
describe 'when disabling endpoint configuration' do
|
||||
let :params do
|
||||
{ :configure_endpoint => false,
|
||||
:password => 'trove_password' }
|
||||
end
|
||||
|
||||
it { is_expected.to_not contain_keystone_endpoint('RegionOne/neutron') }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user