]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/rsyncd/templates/default/rsyncd.conf.erb
Require ruby-dev so we can build native extensions
[chef.git] / cookbooks / rsyncd / templates / default / rsyncd.conf.erb
index adc04a899ce3720ef8c4234df0b93454bfba75bf..c70de0ba787ca8c80bf935c141f1aa9f1601815e 100644 (file)
 <% if details[:refuse_options] -%>
      refuse options = <%= details[:refuse_options].join(" ") %>
 <% end -%>
-<% if details[:hosts_allow] -%>
-     hosts allow = <%= details[:hosts_allow].join(",") %>
+<% unless @hosts_allow[name].empty? -%>
+     hosts allow = <%= @hosts_allow[name].join(",") %>
 <% end -%>
-<% if details[:hosts_deny] -%>
-     hosts deny = <%= details[:hosts_deny].join(",") %>
+<% unless @hosts_deny[name].empty? -%>
+     hosts deny = <%= @hosts_deny[name].join(",") %>
 <% end -%>
      dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.7z
 <% end -%>