Add a rsyncd role. For now just to sync logs to log02, but can be extended to download later.
This commit is contained in:
parent
6e0c36316b
commit
7316ef1ca3
5 changed files with 72 additions and 1 deletions
14
roles/rsyncd/files/rsync
Normal file
14
roles/rsyncd/files/rsync
Normal 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
|
||||
}
|
||||
|
16
roles/rsyncd/files/rsyncd.conf
Normal file
16
roles/rsyncd/files/rsyncd.conf
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue