Revert "Fix compatibility with latest puppetlabs-concat"

This fix broke everything. Lets revert it.

This reverts commit 23cc3616ce.

Change-Id: I9ce82c2e8f65606fbcedb4e2a4b37bc81edc5656
This commit is contained in:
Mathieu Gagné 2013-10-29 22:56:31 -04:00
parent c9090bf724
commit e2e39f0ede
17 changed files with 36 additions and 15 deletions

View File

@ -56,6 +56,7 @@ class swift::proxy(
) { ) {
include swift::params include swift::params
include concat::setup
validate_bool($account_autocreate) validate_bool($account_autocreate)
validate_bool($allow_account_management) validate_bool($allow_account_management)

View File

@ -34,6 +34,7 @@ define swift::storage::server(
} }
include "swift::storage::${type}" include "swift::storage::${type}"
include concat::setup
validate_re($name, '^\d+$') validate_re($name, '^\d+$')
validate_re($type, '^object|container|account$') validate_re($type, '^object|container|account$')

View File

@ -9,7 +9,10 @@ describe 'swift::proxy::authtoken' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' '
include concat::setup
concat { "/etc/swift/proxy-server.conf": }
'
end end
describe 'when using the default signing directory' do describe 'when using the default signing directory' do

View File

@ -12,7 +12,8 @@ describe 'swift::proxy::cache' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": } 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }
class { "memcached": max_memory => 1 }' class { "memcached": max_memory => 1 }'
end end

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::catch_errors' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -10,7 +10,8 @@ describe 'swift::proxy::ceilometer' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": } 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }
class { "ssh::server::install": } class { "ssh::server::install": }
class { "swift": class { "swift":
swift_hash_suffix => "dummy" swift_hash_suffix => "dummy"

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::formpost' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::healthcheck' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -13,7 +13,10 @@ describe 'swift::proxy::keystone' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' '
include concat::setup
concat { "/etc/swift/proxy-server.conf": }
'
end end
it { should contain_file(fragment_file).with_content(/[filter:keystone]/) } it { should contain_file(fragment_file).with_content(/[filter:keystone]/) }

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::ratelimit' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::s3token' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::staticweb' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::swauth' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::swift3' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -9,7 +9,8 @@ describe 'swift::proxy::tempurl' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -12,7 +12,8 @@ describe 'swift::storage::filter::healthcheck' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/dummy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/dummy-server.conf": }'
end end
let :fragment_file do let :fragment_file do

View File

@ -12,7 +12,8 @@ describe 'swift::storage::filter::recon' do
end end
let :pre_condition do let :pre_condition do
'concat { "/etc/swift/dummy-server.conf": }' 'class { "concat::setup": }
concat { "/etc/swift/dummy-server.conf": }'
end end
let :fragment_file do let :fragment_file do