Allow for specification of package version for nova client package.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
class nova::client(
|
class nova::client(
|
||||||
|
$ensure = 'present',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
package { 'python-novaclient':
|
package { 'python-novaclient':
|
||||||
ensure => present,
|
ensure => $ensure,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -2,4 +2,11 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe 'nova::client' do
|
describe 'nova::client' do
|
||||||
it { should contain_package('python-novaclient').with_ensure('present') }
|
it { should contain_package('python-novaclient').with_ensure('present') }
|
||||||
|
describe "with specified version" do
|
||||||
|
let :params do
|
||||||
|
{:ensure => '2012.1-2'}
|
||||||
|
end
|
||||||
|
|
||||||
|
it { should contain_package('python-novaclient').with_ensure('2012.1-2') }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user