add cinder client
This commit is contained in:
parent
fb153e9e31
commit
704400f0db
7
manifests/client.pp
Normal file
7
manifests/client.pp
Normal file
@ -0,0 +1,7 @@
|
||||
class cinder::client(
|
||||
$package_ensure = 'present'
|
||||
) {
|
||||
package { 'python-cinderclient':
|
||||
ensure => $package_ensure,
|
||||
}
|
||||
}
|
11
spec/classes/cinder_client_spec.rb
Normal file
11
spec/classes/cinder_client_spec.rb
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user