diff --git a/manifests/client.pp b/manifests/client.pp new file mode 100644 index 00000000..1e4601a2 --- /dev/null +++ b/manifests/client.pp @@ -0,0 +1,7 @@ +class cinder::client( + $package_ensure = 'present' +) { + package { 'python-cinderclient': + ensure => $package_ensure, + } +} diff --git a/spec/classes/cinder_client_spec.rb b/spec/classes/cinder_client_spec.rb new file mode 100644 index 00000000..ef225c33 --- /dev/null +++ b/spec/classes/cinder_client_spec.rb @@ -0,0 +1,11 @@ +require 'spec_helper' + +describe 'cinder::client' do + it { should contain_package('python-cinderclient').with_ensure('present') } + context 'with params' do + let :params do + {:package_ensure => 'latest'} + end + it { should contain_package('python-cinderclient').with_ensure('latest') } + end +end