1 # DO NOT EDIT - This file is being maintained by Chef
2 <% node[:rsyncd][:modules].sort.each do |name,details| -%>
5 comment = <%= details[:comment] %>
6 path = <%= details[:path] %>
8 read only = <%= details[:read_only] %>
9 write only = <%= details[:write_only] %>
10 list = <%= details[:list] %>
11 uid = <%= details[:uid] %>
12 gid = <%= details[:gid] %>
13 transfer logging = <%= details[:transfer_logging] %>
14 <% if details[:include] -%>
15 include = <%= details[:include].join(" ") %>
17 <% if details[:exclude] -%>
18 exclude = <%= details[:exclude].join(" ") %>
20 <% if details[:max_connections] -%>
21 max connections = <%= details[:max_connections] %>
22 lock file = /var/run/rsyncd.<%= name %>.lock
24 <% if details[:ignore_errors] -%>
27 <% if details[:ignore_nonreadable] -%>
28 ignore nonreadable = true
30 <% if details[:timeout] -%>
31 timeout = <%= details[:timeout] %>
33 <% if details[:refuse_options] -%>
34 refuse options = <%= details[:refuse_options].join(" ") %>
36 <% unless @hosts_allow[name].empty? -%>
37 hosts allow = <%= @hosts_allow[name].sort.join(",") %>
39 <% unless @hosts_deny[name].empty? -%>
40 hosts deny = <%= @hosts_deny[name].sort.join(",") %>
42 dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.7z