
When using keystone, it's possible to modify the behaviour to use a different prefix instead of the default AUTH_. This patch allows you to be able to set that option when declaring your class definition. Change-Id: I11ff23d118e0f3d1792b43e1dc7a2c82c6826427
33 lines
936 B
Puppet
33 lines
936 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. Defaults to ['admin', 'SwiftOperator']
|
|
# Must be an array of strings
|
|
# Swift operator roles must be defined in swift::keystone::auth because
|
|
# keystone API access is usually not available on Swift proxy nodes.
|
|
# [is_admin] Set to true to allow users to set ACLs on their account.
|
|
# Optional. Defaults to true.
|
|
#
|
|
# == Authors
|
|
#
|
|
# Dan Bode dan@puppetlabs.com
|
|
# Francois Charlier fcharlier@ploup.net
|
|
#
|
|
|
|
class swift::proxy::keystone(
|
|
$operator_roles = ['admin', 'SwiftOperator'],
|
|
$is_admin = true,
|
|
$reseller_prefix = 'AUTH_'
|
|
) {
|
|
|
|
concat::fragment { 'swift_keystone':
|
|
target => '/etc/swift/proxy-server.conf',
|
|
content => template('swift/proxy/keystone.conf.erb'),
|
|
order => '79',
|
|
}
|
|
|
|
}
|