Ensure python-swiftclient is installed to use swift-dispersion
Change-Id: I03a27989bbcb957227ca2ab1f5c54420b29bb24a
This commit is contained in:
parent
f849e5d572
commit
45edcd61de
@ -84,6 +84,7 @@ class swift::dispersion (
|
||||
timeout => 0,
|
||||
onlyif => "swift -A ${auth_url} -U ${auth_tenant}:${auth_user} -K ${auth_pass} -V ${auth_version} stat | grep 'Account: '",
|
||||
unless => "swift -A ${auth_url} -U ${auth_tenant}:${auth_user} -K ${auth_pass} -V ${auth_version} list | grep dispersion_",
|
||||
require => Package["swiftclient"],
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,7 +49,8 @@ describe 'swift::dispersion' do
|
||||
:path => ['/bin', '/usr/bin'],
|
||||
:subscribe => 'File[/etc/swift/dispersion.conf]',
|
||||
:onlyif => "swift -A http://127.0.0.1:5000/v2.0/ -U services:dispersion -K dispersion_password -V 2.0 stat | grep 'Account: '",
|
||||
:unless => "swift -A http://127.0.0.1:5000/v2.0/ -U services:dispersion -K dispersion_password -V 2.0 list | grep dispersion_"
|
||||
:unless => "swift -A http://127.0.0.1:5000/v2.0/ -U services:dispersion -K dispersion_password -V 2.0 list | grep dispersion_",
|
||||
:require => 'Package[swiftclient]'
|
||||
)}
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user