Fix compatibility with latest puppetlabs-concat
concat::setup has been made a private class and can no longer be included from modules outside concat itself. concat::setup is already included by the concat define. Removing its inclusion from puppet-swift classes shouldn't result in breakage or loss of functionality. Change-Id: I7566e09bd4e93aec719a495279cf92d8a898057e Closes-bug: #1245936
This commit is contained in:
		@@ -56,7 +56,6 @@ class swift::proxy(
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
  include swift::params
 | 
			
		||||
  include concat::setup
 | 
			
		||||
 | 
			
		||||
  validate_bool($account_autocreate)
 | 
			
		||||
  validate_bool($allow_account_management)
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,6 @@ define swift::storage::server(
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  include "swift::storage::${type}"
 | 
			
		||||
  include concat::setup
 | 
			
		||||
 | 
			
		||||
  validate_re($name, '^\d+$')
 | 
			
		||||
  validate_re($type, '^object|container|account$')
 | 
			
		||||
 
 | 
			
		||||
@@ -9,10 +9,7 @@ describe 'swift::proxy::authtoken' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    '
 | 
			
		||||
      include concat::setup
 | 
			
		||||
      concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
    '
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  describe 'when using the default signing directory' do
 | 
			
		||||
 
 | 
			
		||||
@@ -12,8 +12,7 @@ describe 'swift::proxy::cache' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
     class { "memcached": max_memory => 1 }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::catch_errors' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -10,8 +10,7 @@ describe 'swift::proxy::ceilometer' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
     class { "ssh::server::install": }
 | 
			
		||||
     class { "swift":
 | 
			
		||||
        swift_hash_suffix => "dummy"
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::formpost' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::healthcheck' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -13,10 +13,7 @@ describe 'swift::proxy::keystone' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    '
 | 
			
		||||
      include concat::setup
 | 
			
		||||
      concat { "/etc/swift/proxy-server.conf": }
 | 
			
		||||
    '
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  it { should contain_file(fragment_file).with_content(/[filter:keystone]/) }
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::ratelimit' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::s3token' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::staticweb' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::swauth' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::swift3' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -9,8 +9,7 @@ describe 'swift::proxy::tempurl' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/proxy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -12,8 +12,7 @@ describe 'swift::storage::filter::healthcheck' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/dummy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/dummy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
@@ -12,8 +12,7 @@ describe 'swift::storage::filter::recon' do
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :pre_condition do
 | 
			
		||||
    'class { "concat::setup": }
 | 
			
		||||
     concat { "/etc/swift/dummy-server.conf": }'
 | 
			
		||||
    'concat { "/etc/swift/dummy-server.conf": }'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  let :fragment_file do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user