
The swift pipeline is commonly used to plug capabilities in. This pipeline should be implemented in a way that is easier to extend as people desire additional pipelines. This commit implements classes that can be used to configure the following pipelines: - proxy::cache - proxy::healthcheck - proxy::keystone - proxy::swauth It also reimplements swift::proxy to utilize those pipelines for configuration.
33 lines
996 B
Puppet
33 lines
996 B
Puppet
class swift::proxy::keystone(
|
|
$admin_token = undef,
|
|
$admin_user = undef,
|
|
$admin_tenant_name = undef,
|
|
$admin_password = undef,
|
|
$delay_auth_decision = undef,
|
|
$auth_host = undef,
|
|
$auth_port = undef,
|
|
$auth_protocol = undef,
|
|
$operator_roles = ['admin', 'SwiftOperator'],
|
|
$is_admin = true,
|
|
$cache = 'swift.cache'
|
|
) {
|
|
|
|
concat::fragment { 'swift_keystone':
|
|
target => '/etc/swift/proxy-server.conf',
|
|
content => template('swift/proxy/keystone.conf.erb'),
|
|
order => '79',
|
|
}
|
|
|
|
keystone::client::authtoken { '/etc/swift/proxy-server.conf':
|
|
admin_token => $admin_token,
|
|
admin_user => $admin_user,
|
|
admin_tenant_name => $admin_tenant_name,
|
|
admin_password => $admin_password,
|
|
delay_auth_decision => $delay_auth_decision,
|
|
auth_host => $auth_host,
|
|
auth_port => $auth_port,
|
|
auth_protocol => $auth_protocol
|
|
}
|
|
|
|
}
|