
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: I00cf4846bb933291469be94c9debed425eddf798
39 lines
846 B
Puppet
39 lines
846 B
Puppet
# == Class: swift::proxy::swauth
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*package_ensure*]
|
|
# The status of the python-swauth package.
|
|
# Defaults to 'present'
|
|
#
|
|
# [*swauth_endpoint*]
|
|
# (optional) The endpoint used to autenticate to Swauth WSGI.
|
|
# Defaults to '127.0.0.1'
|
|
#
|
|
# [*swauth_super_admin_key*]
|
|
# (optional) The Swauth WSGI filter admin key.
|
|
# Defaults to 'swauthkey'
|
|
#
|
|
#
|
|
class swift::proxy::swauth(
|
|
$swauth_endpoint = '127.0.0.1',
|
|
$swauth_super_admin_key = 'swauthkey',
|
|
$package_ensure = 'present'
|
|
) {
|
|
|
|
include ::swift::deps
|
|
|
|
package { 'python-swauth':
|
|
ensure => $package_ensure,
|
|
before => Package['swift-proxy'],
|
|
tag => 'swift-package',
|
|
}
|
|
|
|
concat::fragment { 'swift_proxy_swauth':
|
|
target => '/etc/swift/proxy-server.conf',
|
|
content => template('swift/proxy/swauth.conf.erb'),
|
|
order => '20',
|
|
}
|
|
|
|
}
|