Files
puppet-swift/manifests/proxy/gatekeeper.pp
Adam Vinsh 60ed2ee79c Replace proxy concat/template with ini provider
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
2016-10-06 10:29:04 -04:00

57 lines
1.2 KiB
Puppet

#
# Configure swift gatekeeper.
#
# == Examples
#
# include swift::proxy::gatekeeper
#
# == Parameters
#
# [*log_name*]
# The log name of gatekeeper.
# Default to gatekeeper.
#
# [*log_facility*]
# The log facility of gatekeeper.
# Default to LOG_LOCAL0.
#
# [*log_level*]
# The log level of gatekeeper.
# Default to INFO.
#
# [*log_headers*]
# The log headers of gatekeeper.
# Default to false.
#
# [*log_address*]
# The log address of gatekeeper.
# Default to '/dev/log'.
#
# == Authors
#
# Xingchao Yu yuxcer@gmail.com
#
# == Copyright
#
# Copyright 2014 UnitedStack licensing@unitedstack.com
#
class swift::proxy::gatekeeper(
$log_name = 'gatekeeper',
$log_facility = 'LOG_LOCAL0',
$log_level = 'INFO',
$log_headers = false,
$log_address = '/dev/log'
) {
include ::swift::deps
swift_proxy_config {
'filter:gatekeeper/use': value => 'egg:swift#gatekeeper';
'filter:gatekeeper/set log_name': value => $log_name;
'filter:gatekeeper/set log_facility': value => $log_facility;
'filter:gatekeeper/set log_level': value => $log_level;
'filter:gatekeeper/set log_headers': value => $log_headers;
'filter:gatekeeper/set log_address': value => $log_address;
}
}