
Maintains full backward compatibility. Use swift_proxy_config ini provider to mange proxy-server.conf. Remove all erb templates. Move all template logic into proxy middleware classes. To purge proxy.conf of settings that are not specified set the new paramater "purge_config" to "true". Change-Id: I0a143cf812043ea0f9a008a6e5c60ec87f9a4e9a
38 lines
931 B
Puppet
38 lines
931 B
Puppet
# == Class: swift::proxy::swauth
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*package_ensure*]
|
|
# The status of the python-swauth package.
|
|
# Defaults to 'present'
|
|
#
|
|
# [*swauth_endpoint*]
|
|
# (optional) The endpoint used to autenticate to Swauth WSGI.
|
|
# Defaults to '127.0.0.1'
|
|
#
|
|
# [*swauth_super_admin_key*]
|
|
# (optional) The Swauth WSGI filter admin key.
|
|
# Defaults to 'swauthkey'
|
|
#
|
|
#
|
|
class swift::proxy::swauth(
|
|
$swauth_endpoint = '127.0.0.1',
|
|
$swauth_super_admin_key = 'swauthkey',
|
|
$package_ensure = 'present'
|
|
) {
|
|
|
|
include ::swift::deps
|
|
|
|
package { 'python-swauth':
|
|
ensure => $package_ensure,
|
|
before => Package['swift-proxy'],
|
|
tag => 'swift-package',
|
|
}
|
|
|
|
swift_proxy_config {
|
|
'filter:swauth/use': value => 'egg:swauth#swauth';
|
|
'filter:swauth/default_swift_cluster': value => "local#${swauth_endpoint}";
|
|
'filter:swauth/super_admin_key': value => $swauth_super_admin_key;
|
|
}
|
|
}
|