[vmdk] Replaced pip with native package manager

Change-Id: I0603889ad00cbd7fe83c436f1c7273ef0c35b73f
This commit is contained in:
Francesco Vollero 2014-02-20 19:23:22 +01:00
parent b88fd97dc3
commit f82a410d43
4 changed files with 11 additions and 13 deletions

View File

@ -81,8 +81,7 @@ define cinder::backend::vmdk (
} }
} }
package { 'suds': package { 'python-suds':
ensure => present, ensure => present
provider => pip
} }
} }

View File

@ -45,6 +45,7 @@
# (optional) The name for the folder in the VC datacenter that will contain cinder volumes. # (optional) The name for the folder in the VC datacenter that will contain cinder volumes.
# Defaults to 'cinder-volumes'. # Defaults to 'cinder-volumes'.
# #
class cinder::volume::vmdk( class cinder::volume::vmdk(
$host_ip, $host_ip,
$host_username, $host_username,
@ -75,8 +76,7 @@ class cinder::volume::vmdk(
} }
} }
package { 'suds': package{ 'python-suds':
ensure => present, ensure => present,
provider => pip
} }
} }

View File

@ -34,10 +34,10 @@ describe 'cinder::volume::vmdk' do
should_not contain_cinder_config('DEFAULT/vmware_wsdl_location') should_not contain_cinder_config('DEFAULT/vmware_wsdl_location')
end end
it 'installs vmdk driver with pip' do it 'installs vmdk python driver' do
should contain_package('suds').with( should contain_package('python-suds').with(
:ensure => 'present', :ensure => 'present'
:provider => 'pip') )
end end
context 'with optional parameters' do context 'with optional parameters' do

View File

@ -37,10 +37,9 @@ describe 'cinder::backend::vmdk' do
should_not contain_cinder_config('hippo/vmware_wsdl_location') should_not contain_cinder_config('hippo/vmware_wsdl_location')
end end
it 'installs vmdk driver with pip' do it 'installs suds python package' do
should contain_package('suds').with( should contain_package('python-suds').with(
:ensure => 'present', :ensure => 'present')
:provider => 'pip')
end end
context 'with optional parameters' do context 'with optional parameters' do