]> git.openstreetmap.org Git - chef.git/blob - cookbooks/rsyncd/templates/default/rsyncd.conf.erb
5e169129cf7c1d090fb8ed9b29ca2da9ab6700ce
[chef.git] / cookbooks / rsyncd / templates / default / rsyncd.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2 <% node[:rsyncd][:modules].sort.each do |name,details| -%>
3
4 [<%= name %>]
5      comment = <%= details[:comment] %>
6      path = <%= details[:path] %>
7      use chroot = yes
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(" ") %>
16 <% end -%>
17 <% if details[:exclude] -%>
18      exclude = <%= details[:exclude].join(" ") %>
19 <% end -%>
20 <% if details[:max_connections] -%>
21      max connections = <%= details[:max_connections] %>
22      lock file = /var/run/rsyncd.<%= name %>.lock
23 <% end -%>
24 <% if details[:ignore_errors] -%>
25      ignore errors = true
26 <% end -%>
27 <% if details[:ignore_nonreadable] -%>
28      ignore nonreadable = true
29 <% end -%>
30 <% if details[:timeout] -%>
31      timeout = <%= details[:timeout] %>
32 <% end -%>
33 <% if details[:refuse_options] -%>
34      refuse options = <%= details[:refuse_options].join(" ") %>
35 <% end -%>
36 <% unless @hosts_allow[name].empty? -%>
37      hosts allow = <%= @hosts_allow[name].join(",") %>
38 <% end -%>
39 <% unless @hosts_deny[name].empty? -%>
40      hosts deny = <%= @hosts_deny[name].join(",") %>
41 <% end -%>
42      dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.7z
43 <% end -%>