Puppet Class: swift::ringserver

Defined in:
manifests/ringserver.pp

Overview

Used to create an rsync server to serve up the ring databases via rsync

Parameters

Dependencies

Class['swift']

Examples

Authors

Dan Bode dan@puppetlabs.com

Copyright 2011 Puppetlabs Inc, unless otherwise noted.

Parameters:

  • local_net_ip (Any)
  • max_connections (Any) (defaults to: 5)


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'manifests/ringserver.pp', line 19

class swift::ringserver(
  $local_net_ip,
  $max_connections = 5
) {

  Class['ringbuilder'] -> Class['swift::ringserver']

  if !defined(Class['rsync::server']) {
    class { 'rsync::server':
      use_xinetd => true,
      address    => $local_net_ip,
      use_chroot => 'no',
    }
  }

  rsync::server::module { 'swift_server':
    path            => '/etc/swift',
    lock_file       => '/var/lock/swift_server.lock',
    uid             => 'swift',
    gid             => 'swift',
    max_connections => $max_connections,
    read_only       => true,
  }
}