Puppet Class: rsync::server::global
- Defined in:
- manifests/server/global.pp
Overview
Setup the global section of /etc/rsyncd.conf.
See “rsyncd.conf(5)“ for details of parameters not listed below.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'manifests/server/global.pp', line 31
class rsync::server::global (
Optional[Stdlib::Absolutepath] $motd_file = undef,
Stdlib::Absolutepath $pid_file = '/var/run/rsyncd.pid',
String $syslog_facility = 'daemon',
Simplib::Port $port = 873,
Simplib::IP $address = '127.0.0.1',
Simplib::Netlist $trusted_nets = simplib::lookup('simp_options::trusted_nets', { default_value => ['127.0.0.1'] }),
Boolean $tcpwrappers = simplib::lookup('simp_options::tcpwrappers', { default_value => false })
) {
assert_private()
include '::rsync::server'
if $tcpwrappers {
include '::tcpwrappers'
$_tcp_wrappers_name = $::rsync::server::stunnel ? {
true => 'rsync_server',
default => 'rsync',
}
tcpwrappers::allow { $_tcp_wrappers_name: pattern => $trusted_nets }
}
if $facts['os']['selinux']['current_mode'] and $facts['os']['selinux']['current_mode'] != 'disabled' {
vox_selinux::port { "allow_rsync_port_${port}":
ensure => 'present',
seltype => 'rsync_port_t',
protocol => 'tcp',
port => $port,
}
}
concat::fragment { 'rsync_global':
order => 5,
target => '/etc/rsyncd.conf',
content => template("${module_name}/rsyncd.conf.global.erb")
}
}
|