Files
puppet-swift/manifests/storage.pp
Shi Yan ff9608a8c1 Support to configure rsync max_connections and not use xinetd for rsync
Change-Id: I40f4e7f2c81cebf8213057a341ef81f7f3d09d1e
2020-05-27 09:38:55 +10:00

41 lines
804 B
Puppet

#
# Configures dependencies that are common for all storage
# types.
# - installs an rsync server
# - installs required packages
#
# == Parameters
# [*storage_local_net_ip*] ip address that the swift servers should
# bind to. Required.
#
# [*rsync_use_xinetd*] indicate if xinetd should be used to manage
# rsync service, Default to True.
#
# == Dependencies
#
# == Examples
#
# == Authors
#
# Dan Bode dan@puppetlabs.com
#
# == Copyright
#
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
#
class swift::storage(
$storage_local_net_ip,
$rsync_use_xinetd = true,
) {
include swift::deps
if !defined(Class['rsync::server']){
class{ '::rsync::server':
use_xinetd => $rsync_use_xinetd,
address => $storage_local_net_ip,
use_chroot => 'no',
}
}
}