
Previously, all of the storage server types (account, container, proxy) were always configured to be installed on the same node. It often makes sense to only have the account and container together, and to put the object server on a different node. (or its possible that other configurations make sense) This commit refactors the swift module so that each of the types of nodes can be built independently of each other.
28 lines
728 B
Ruby
28 lines
728 B
Ruby
require 'spec_helper'
|
|
describe 'swift::storage::account' do
|
|
|
|
let :pre_condition do
|
|
"class { 'ssh::server::install': }
|
|
class { 'swift': swift_hash_suffix => 'foo' }
|
|
class { 'swift::storage': storage_local_net_ip => '10.0.0.1' }"
|
|
end
|
|
|
|
let :default_params do
|
|
{:package_ensure => 'present'}
|
|
end
|
|
|
|
[{},
|
|
{:package_ensure => 'latest'}
|
|
].each do |param_set|
|
|
describe "when #{param_set == {} ? "using default" : "specifying"} class parameters" do
|
|
let :param_hash do
|
|
default_params.merge(param_set)
|
|
end
|
|
let :params do
|
|
param_set
|
|
end
|
|
it { should contain_swift__storage__generic('account').with_package_ensure(param_hash[:package_ensure]) }
|
|
end
|
|
end
|
|
end
|