Fix for Rsync daemon

This commit is contained in:
Vladmir Sharhsov(warpc) 2013-10-24 17:18:29 +04:00
parent 6247e6bb2a
commit 35b615195b
2 changed files with 16 additions and 11 deletions

View File

@ -1,7 +1,5 @@
defaults
{
enabled = tftp
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT

View File

@ -1,25 +1,32 @@
class nailgun::puppetsync(
$puppet_folder = '/etc/puppet',
$xinetd_folder = '/etc/xinet.d',
$xinetd_config = '/etc/xinetd.d/rsync',
$rsync_config = '/etc/rsyncd.conf',
){
File {
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
}
file { 'rsync_conf' :
path => $rsync_config,
content => template('nailgun/rsyncd.conf.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}
file { 'rsync_xinetd' :
path => "${xinetd_folder}/rsyncd.conf",
path => $xinetd_config,
content => template('nailgun/rsyncd_xinetd.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}
if !defined(Package['rsync']) {
package { 'rsync':
ensure => installed,
}
}
File['rsync_conf', 'rsync_xinetd'] ~> Service['xinetd']
Package['rsync'] -> File['rsync_conf', 'rsync_xinetd'] ~> Service['xinetd']
}