Puppet Class: statistics::rsyncd
- Defined in:
- modules/statistics/manifests/rsyncd.pp
Overview
Class statistics::rsyncd
Sets up rsyncd and common modules for statistic servers. Currently this is read/write between statistic servers in /srv and /home
Parameters
hosts_allow - array. Hosts to grant rsync access.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'modules/statistics/manifests/rsyncd.pp', line 9
class statistics::rsyncd($hosts_allow)
{
Class['::statistics'] -> Class['statistics::rsyncd']
# this uses modules/rsync to
# set up an rsync daemon service
class { '::rsync::server':
# the default timeout of 300 is too low
timeout => 1000,
}
# Set up an rsync module
# (in /etc/rsyncd.conf) for /home.
rsync::server::module { 'home':
path => '/home',
read_only => 'yes',
list => 'yes',
# Set uid/gid to false to override rsync::server::module's default of 0/0
uid => false,
gid => false,
hosts_allow => $hosts_allow,
auto_ferm => true,
}
# Set up an rsync module
# (in /etc/rsyncd.conf) for /srv.
rsync::server::module { 'srv':
path => '/srv',
read_only => 'yes',
list => 'yes',
# Set uid/gid to false to override rsync::server::module's default of 0/0
uid => false,
gid => false,
hosts_allow => $hosts_allow,
auto_ferm => true,
}
}
|