Files
puppet-swift/manifests/proxy/keystone.pp
François Charlier d831ec1c45 Reimplement keystone pipeline
This commit removes the keystone::client::authtoken
class from the swift::proxy::keystone class.

This has been done to  map the classes more cleanly
to the pipeline specication.
2012-06-04 13:47:48 -07:00

35 lines
903 B
Puppet

#
# This class can be sed to manage keystone middleware for swift proxy
#
# == Parameters
# [operator_roles] a list of keystone roles a user must have to gain
# access to Swift.
# Optional. Dfeaults to ['admin', 'SwiftOperator']
# Must be an array of strings
# [is_admin] Set to true to allow users to set ACLs on their account.
# Optional. Defaults to true.
# [cache] the cache backend to use
# Optional. Defaults to 'swift.cache'
#
# == Authors
#
# Dan Bode dan@puppetlabs.com
# François Charlier fcharlier@ploup.net
#
class swift::proxy::keystone(
$operator_roles = ['admin', 'SwiftOperator'],
$is_admin = true,
$cache = 'swift.cache'
) {
require 'keystone::python'
concat::fragment { 'swift_keystone':
target => '/etc/swift/proxy-server.conf',
content => template('swift/proxy/keystone.conf.erb'),
order => '79',
}
}