Files
puppet-swift/manifests/proxy/s3token.pp
François Charlier caad4e3732 Implement additional proxy middlewares
This commit implements additional proxy middlewares
  - catch_errors - handles errors
  - ratelimit    - limits incoming requests
  - s3token - misddleware for s3auth
  - swift3 - implement swift APIs

These middlewares needed to be modeled b/c they
are configurable interfaces that needed to be
configurable via Puppet.
2012-06-04 13:47:52 -07:00

38 lines
726 B
Puppet

#
# Configure swift s3token.
#
# == Parameters
# [auth_host] the keystone host
# Optional. Defaults to 127.0.0.1
# [auth_port] the Keystone client API port
# Optional. Defaults to 5000
# [auth_protocol] http or https
# Optional. Defaults to http
#
# == Dependencies
#
# == Examples
#
# == Authors
#
# François Charlier fcharlier@ploup.net
#
# == Copyright
#
# Copyright 2012 eNovance licensing@enovance.com
#
class swift::proxy::s3token(
auth_host = '127.0.0.1',
auth_port = 5000,
auth_protocol = 'http'
) {
concat::fragment { 'swift_s3token':
target => '/etc/swift/proxy-server.conf',
content => template('swift/proxy/s3token.conf.erb'),
order => '28',
}
include 'keystone::python'
}