Merge "Install open-iscsi on controllers if Ceph is used for Cinder backend"

This commit is contained in:
Jenkins 2016-01-04 09:08:50 +00:00 committed by Gerrit Code Review
commit 1052755dea
2 changed files with 13 additions and 0 deletions

View File

@ -265,3 +265,9 @@ override_resources { 'nova_config':
override_resources { 'nova_paste_api_ini':
data => $override_configuration['nova_paste_api_ini']
}
if $storage_hash['volumes_ceph'] {
package { 'open-iscsi':
ensure => present,
}
}

View File

@ -66,6 +66,8 @@ describe manifest do
default_log_levels_hash = Noop.hiera_hash 'default_log_levels'
default_log_levels = Noop.puppet_function 'join_keys_to_values',default_log_levels_hash,'='
storage_hash = Noop.hiera_structure 'storage'
# TODO All this stuff should be moved to shared examples controller* tests.
it 'should configure default_log_levels' do
@ -183,6 +185,11 @@ describe manifest do
end
end
if storage_hash['volumes_ceph']
it 'should install open-iscsi if ceph is used as cinder backend' do
should contain_package('open-iscsi').with('ensure' => 'present')
end
end
end # end of shared_examples
test_ubuntu_and_centos manifest