Fix for Rsync daemon
This commit is contained in:
parent
6247e6bb2a
commit
35b615195b
|
@ -1,7 +1,5 @@
|
|||
defaults
|
||||
{
|
||||
enabled = tftp
|
||||
|
||||
log_type = SYSLOG daemon info
|
||||
log_on_failure = HOST
|
||||
log_on_success = PID HOST DURATION EXIT
|
||||
|
|
|
@ -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']
|
||||
|
||||
}
|
Loading…
Reference in New Issue