Allow specification of nova-volume package version.
This commit is contained in:
parent
6f744cd4be
commit
af5e4faef6
|
@ -1,5 +1,6 @@
|
|||
class nova::volume(
|
||||
$enabled=false
|
||||
$enabled = false,
|
||||
$ensure_package = 'present',
|
||||
) {
|
||||
|
||||
include 'nova::params'
|
||||
|
@ -15,6 +16,7 @@ class nova::volume(
|
|||
enabled => $enabled,
|
||||
package_name => $::nova::params::volume_package_name,
|
||||
service_name => $::nova::params::volume_service_name,
|
||||
ensure_package => $ensure_package,
|
||||
}
|
||||
|
||||
package { 'tgt':
|
||||
|
|
|
@ -53,6 +53,14 @@ describe 'nova::volume' do
|
|||
)}
|
||||
end
|
||||
end
|
||||
describe 'with package version' do
|
||||
let :params do
|
||||
{:ensure_package => '2012.1-2'}
|
||||
end
|
||||
it { should contain_package('nova-volume').with(
|
||||
'ensure' => '2012.1-2'
|
||||
)}
|
||||
end
|
||||
end
|
||||
describe 'on rhel' do
|
||||
let :facts do
|
||||
|
|
Loading…
Reference in New Issue