
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
790 B
Puppet
39 lines
790 B
Puppet
#
|
|
# Configures the swift proxy memcache server
|
|
#
|
|
# [*memcache_servers*] A list of the memcache servers to be used. Entries
|
|
# should be in the form host:port.
|
|
#
|
|
# == Dependencies
|
|
#
|
|
# Class['memcached']
|
|
#
|
|
# == Examples
|
|
#
|
|
# == Authors
|
|
#
|
|
# Dan Bode dan@puppetlabs.com
|
|
#
|
|
# == Copyright
|
|
#
|
|
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
|
|
#
|
|
class swift::proxy::cache(
|
|
$memcache_servers = ['127.0.0.1:11211']
|
|
) {
|
|
|
|
include ::swift::deps
|
|
|
|
# require the memcached class if its on the same machine
|
|
if grep(any2array($memcache_servers), '^127\.0\.0\.1') {
|
|
Class['memcached'] -> Class['swift::proxy::cache']
|
|
}
|
|
|
|
concat::fragment { 'swift_cache':
|
|
target => '/etc/swift/proxy-server.conf',
|
|
content => template('swift/proxy/cache.conf.erb'),
|
|
order => '23',
|
|
}
|
|
|
|
}
|