Puppet Class: swift::proxy::cache

Defined in:
manifests/proxy/cache.pp

Overview

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 2011 Puppetlabs Inc, unless otherwise noted.

Parameters:

  • memcache_servers (Any) (defaults to: ['127.0.0.1:11211'])


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/proxy/cache.pp', line 21

class swift::proxy::cache(
  $memcache_servers = ['127.0.0.1:11211']
) {

  # require the memcached class if its on the same machine
  if $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',
  }

}