38 lines
902 B
Django/Jinja
38 lines
902 B
Django/Jinja
{{ ansible_header | comment }}
|
|
|
|
# GLOBAL OPTIONS
|
|
log file=/var/log/rsyncd
|
|
# for pid file, dont' use /var/run/rsync.pid unless you're not going to run
|
|
# rsync out of the init.d script. The /var/run/rsyncd.pid below is OK.
|
|
pid file=/var/run/rsyncd.pid
|
|
syslog facility=daemon
|
|
|
|
uid = root
|
|
gid = root
|
|
use chroot = no
|
|
read only = yes
|
|
# On ne liste pas les modules
|
|
list = no
|
|
#max connections=2
|
|
ignore errors = no
|
|
ignore nonreadable = yes
|
|
# ne loggue pas tous les fichiers
|
|
transfer logging = no
|
|
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
|
|
# verifie les droits de /etc/rsyncd.secrets
|
|
strict modes = yes
|
|
# personne n'accede aux modules par defaut
|
|
hosts deny = *
|
|
|
|
# MODULE OPTIONS
|
|
{% for module in rsyncd.modules -%}
|
|
[{{ module.name }}]
|
|
path = {{ module.path }}
|
|
comment = {{ module.comment }}
|
|
uid = nobody
|
|
gid = nogroup
|
|
hosts allow = {{ module.hosts_allow }}
|
|
read only = yes
|
|
|
|
{% endfor %}
|