@@ -6,7 +6,8 @@ describe 'swift::proxy::cache' do
|
|||||||
{
|
{
|
||||||
:operatingsystem => 'Ubuntu',
|
:operatingsystem => 'Ubuntu',
|
||||||
:osfamily => 'Debian',
|
:osfamily => 'Debian',
|
||||||
:processorcount => 1
|
:processorcount => 1,
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe 'swift::proxy::healthcheck' do
|
describe 'swift::proxy::healthcheck' do
|
||||||
|
|
||||||
|
let :facts do
|
||||||
|
{
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat'
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
'class { "concat::setup": }
|
'class { "concat::setup": }
|
||||||
concat { "/etc/swift/proxy-server.conf": }'
|
concat { "/etc/swift/proxy-server.conf": }'
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe 'swift::proxy::keystone' do
|
describe 'swift::proxy::keystone' do
|
||||||
|
|
||||||
|
let :facts do
|
||||||
|
{
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat',
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
let :fragment_file do
|
let :fragment_file do
|
||||||
'/var/lib/puppet/concat/_etc_swift_proxy-server.conf/fragments/79_swift_keystone'
|
'/var/lib/puppet/concat/_etc_swift_proxy-server.conf/fragments/79_swift_keystone'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ describe 'swift::proxy' do
|
|||||||
let :facts do
|
let :facts do
|
||||||
{:operatingsystem => 'Ubuntu',
|
{:operatingsystem => 'Ubuntu',
|
||||||
:osfamily => 'Debian',
|
:osfamily => 'Debian',
|
||||||
:processorcount => 1
|
:processorcount => 1,
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe 'swift::proxy::swauth' do
|
describe 'swift::proxy::swauth' do
|
||||||
|
|
||||||
|
let :facts do
|
||||||
|
{
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat'
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
'class { "concat::setup": }
|
'class { "concat::setup": }
|
||||||
concat { "/etc/swift/proxy-server.conf": }'
|
concat { "/etc/swift/proxy-server.conf": }'
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ describe 'swift::ringbuilder::create' do
|
|||||||
|
|
||||||
it { should contain_exec("create_#{type}").with(
|
it { should contain_exec("create_#{type}").with(
|
||||||
{:command => "swift-ring-builder /etc/swift/#{type}.builder create #{param_hash[:part_power]} #{param_hash[:replicas]} #{param_hash[:min_part_hours]}",
|
{:command => "swift-ring-builder /etc/swift/#{type}.builder create #{param_hash[:part_power]} #{param_hash[:replicas]} #{param_hash[:min_part_hours]}",
|
||||||
:path => ['/usr/bin'],
|
:path => '/usr/bin',
|
||||||
:creates => "/etc/swift/#{type}.builder" }
|
:creates => "/etc/swift/#{type}.builder" }
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ describe 'swift::ringbuilder::rebalance' do
|
|||||||
end
|
end
|
||||||
it { should contain_exec("rebalance_#{type}").with(
|
it { should contain_exec("rebalance_#{type}").with(
|
||||||
{:command => "swift-ring-builder /etc/swift/#{type}.builder rebalance",
|
{:command => "swift-ring-builder /etc/swift/#{type}.builder rebalance",
|
||||||
:path => ['/usr/bin'],
|
:path => '/usr/bin',
|
||||||
:refreshonly => true}
|
:refreshonly => true}
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ describe 'swift::storage::server' do
|
|||||||
{
|
{
|
||||||
:operatingsystem => 'Ubuntu',
|
:operatingsystem => 'Ubuntu',
|
||||||
:osfamily => 'Debian',
|
:osfamily => 'Debian',
|
||||||
:processorcount => 1
|
:processorcount => 1,
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat',
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ describe 'swift::storage::xfs' do
|
|||||||
|
|
||||||
it { should contain_exec("mkfs-foo").with(
|
it { should contain_exec("mkfs-foo").with(
|
||||||
:command => "mkfs.xfs -i size=#{param_hash[:byte_size]} #{param_hash[:device]}",
|
:command => "mkfs.xfs -i size=#{param_hash[:byte_size]} #{param_hash[:device]}",
|
||||||
:path => ['/sbin/'],
|
:path => '/sbin/',
|
||||||
:refreshonly => true,
|
:refreshonly => true,
|
||||||
:require => 'Package[xfsprogs]'
|
:require => 'Package[xfsprogs]'
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user