Files
puppet-swift/manifests/proxy/keystone.pp
2013-01-24 08:27:19 -08:00

35 lines
902 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
# Francois 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',
}
}