Make cinder-volume optional
Change-Id: I8d8b1a751096a29bd34c7a6a57a2bd268a984507
This commit is contained in:
@@ -29,6 +29,7 @@ class openstack::cinder::all(
|
|||||||
$volume_driver = 'iscsi',
|
$volume_driver = 'iscsi',
|
||||||
$iscsi_ip_address = '127.0.0.1',
|
$iscsi_ip_address = '127.0.0.1',
|
||||||
$setup_test_volume = false,
|
$setup_test_volume = false,
|
||||||
|
$manage_volumes = true,
|
||||||
$verbose = false
|
$verbose = false
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@@ -73,6 +74,7 @@ class openstack::cinder::all(
|
|||||||
enabled => $enabled,
|
enabled => $enabled,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $manage_volumes {
|
||||||
class {'::cinder::volume':
|
class {'::cinder::volume':
|
||||||
package_ensure => $package_ensure,
|
package_ensure => $package_ensure,
|
||||||
enabled => $enabled,
|
enabled => $enabled,
|
||||||
@@ -94,3 +96,4 @@ class openstack::cinder::all(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@@ -56,6 +56,15 @@ describe 'openstack::cinder::all' do
|
|||||||
should_not contain_class('cinder::setup_test_volume')
|
should_not contain_class('cinder::setup_test_volume')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'with manage_volumes set to false' do
|
||||||
|
before do
|
||||||
|
params.merge!(
|
||||||
|
:manage_volumes => false
|
||||||
|
)
|
||||||
|
end
|
||||||
|
it { should_not contain_class('cinder::volume') }
|
||||||
|
end
|
||||||
|
|
||||||
describe 'with a volume driver other than iscsi' do
|
describe 'with a volume driver other than iscsi' do
|
||||||
before do
|
before do
|
||||||
params.merge!(
|
params.merge!(
|
||||||
|
Reference in New Issue
Block a user