Allow for specification of package version for nova client package.

This commit is contained in:
John Chilton 2012-05-08 20:17:46 -05:00
parent 7af9469f6b
commit 7c836ea985
2 changed files with 9 additions and 2 deletions

View File

@ -1,9 +1,9 @@
class nova::client( class nova::client(
$ensure = 'present',
) { ) {
package { 'python-novaclient': package { 'python-novaclient':
ensure => present, ensure => $ensure,
} }
} }

View File

@ -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