
This patch bump puppet-lint gem and add metadata and parameters checks. Metadata lint issues (SPDX ID), missing parameters documentation and syntaxe lint issues was also fixed in this patch Doc for metadata syntax. https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html Change-Id: Ia6bb3483b3ffdbeed60b58702a36e0c7b31ffb86
52 lines
1.0 KiB
Puppet
52 lines
1.0 KiB
Puppet
# == Class: swift::ringserver
|
|
#
|
|
# Used to create an rsync server to serve up the ring databases via rsync
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*local_net_ip*]
|
|
# (required) ip address that the swift servers should bind to.
|
|
#
|
|
# [*max_connections*]
|
|
# (optional) maximum connections to rsync server
|
|
# Defaults to 5
|
|
#
|
|
# == Dependencies
|
|
#
|
|
# Class['swift']
|
|
#
|
|
# == Examples
|
|
#
|
|
# == Authors
|
|
#
|
|
# Dan Bode dan@puppetlabs.com
|
|
#
|
|
# == Copyright
|
|
#
|
|
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
|
|
#
|
|
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,
|
|
}
|
|
}
|