Add a rsyncd role. For now just to sync logs to log02, but can be extended to download later.

This commit is contained in:
Kevin Fenzi 2014-03-17 15:55:26 +00:00
parent 6e0c36316b
commit 7316ef1ca3
5 changed files with 72 additions and 1 deletions

14
roles/rsyncd/files/rsync Normal file
View file

@ -0,0 +1,14 @@
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}

View file

@ -0,0 +1,16 @@
pid file = /var/run/rsyncd.pid
syslog facility = daemon
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.bz2 *.iso
use chroot = false
transfer logging = false
exclude = .snapshot/ .~tmp~/ /.private/ /.private/** **/.nfs*
# For distributing applications
[log]
comment = Server Logs
path = /var/log
uid = root
gid = root
read only = yes
hosts allow = 10.5.126.29 192.168.1.56