puppet-swift/manifests/proxy/swauth.pp
Takashi Kajinami 0eda2a0a50 Deprecate support for swauth
... because the swauth project[1] has been already retired.

[1] https://opendev.org/x/swauth

Change-Id: I202a8044797bb3f315e2e4da7e412a0ee5b1349a
2022-07-04 09:58:34 +09:00

41 lines
1.0 KiB
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 authenticate 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
warning('Support for swauth has been deprecaed and will be removed in a futue release.')
package { 'python-swauth':
ensure => $package_ensure,
tag => 'swift-package',
}
Package['python-swauth'] -> Package<| title == 'swift-proxy' |>
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;
}
}