identity: ability to disable swift
Close bug #178 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
f807115f25
commit
b961bb1122
@ -324,6 +324,7 @@
|
|||||||
# Defaults value in params
|
# Defaults value in params
|
||||||
#
|
#
|
||||||
class cloud::identity (
|
class cloud::identity (
|
||||||
|
$swift_enabled = $os_params::swift,
|
||||||
$identity_roles_addons = $os_params::identity_roles_addons,
|
$identity_roles_addons = $os_params::identity_roles_addons,
|
||||||
$keystone_db_host = $os_params::keystone_db_host,
|
$keystone_db_host = $os_params::keystone_db_host,
|
||||||
$keystone_db_user = $os_params::keystone_db_user,
|
$keystone_db_user = $os_params::keystone_db_user,
|
||||||
@ -454,6 +455,7 @@ class cloud::identity (
|
|||||||
# ssl => false
|
# ssl => false
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
if $swift_enabled {
|
||||||
class {'swift::keystone::auth':
|
class {'swift::keystone::auth':
|
||||||
address => $ks_swift_internal_host,
|
address => $ks_swift_internal_host,
|
||||||
password => $ks_swift_password,
|
password => $ks_swift_password,
|
||||||
@ -468,6 +470,7 @@ class cloud::identity (
|
|||||||
class {'swift::keystone::dispersion':
|
class {'swift::keystone::dispersion':
|
||||||
auth_pass => $ks_swift_dispersion_password
|
auth_pass => $ks_swift_dispersion_password
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class {'ceilometer::keystone::auth':
|
class {'ceilometer::keystone::auth':
|
||||||
admin_address => $ks_ceilometer_admin_host,
|
admin_address => $ks_ceilometer_admin_host,
|
||||||
|
@ -24,6 +24,7 @@ describe 'cloud::identity' do
|
|||||||
|
|
||||||
let :params do
|
let :params do
|
||||||
{ :identity_roles_addons => ['SwiftOperator', 'ResellerAdmin'],
|
{ :identity_roles_addons => ['SwiftOperator', 'ResellerAdmin'],
|
||||||
|
:swift_enabled => true,
|
||||||
:keystone_db_host => '10.0.0.1',
|
:keystone_db_host => '10.0.0.1',
|
||||||
:keystone_db_user => 'keystone',
|
:keystone_db_user => 'keystone',
|
||||||
:keystone_db_password => 'secrete',
|
:keystone_db_password => 'secrete',
|
||||||
@ -253,6 +254,16 @@ describe 'cloud::identity' do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'without Swift' do
|
||||||
|
before :each do
|
||||||
|
params.merge!(:swift_enabled => false)
|
||||||
|
end
|
||||||
|
it 'should not configure swift endpoints and users' do
|
||||||
|
should_not contain_class('swift::keystone::auth')
|
||||||
|
should_not contain_class('swift::keystone::dispersion')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'on Debian platforms' do
|
context 'on Debian platforms' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user