]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/rsyncd/templates/default/rsyncd.conf.erb
Sort allow/deny lists in rsyncd.conf
[chef.git] / cookbooks / rsyncd / templates / default / rsyncd.conf.erb
index c70de0ba787ca8c80bf935c141f1aa9f1601815e..063ac49d701c96c4e54d6f0c52330f2962511922 100644 (file)
@@ -1,5 +1,5 @@
 # DO NOT EDIT - This file is being maintained by Chef
-<% node[:rsyncd][:modules].each do |name,details| -%>
+<% node[:rsyncd][:modules].sort.each do |name,details| -%>
 
 [<%= name %>]
      comment = <%= details[:comment] %>
      refuse options = <%= details[:refuse_options].join(" ") %>
 <% end -%>
 <% unless @hosts_allow[name].empty? -%>
-     hosts allow = <%= @hosts_allow[name].join(",") %>
+     hosts allow = <%= @hosts_allow[name].sort.join(",") %>
 <% end -%>
 <% unless @hosts_deny[name].empty? -%>
-     hosts deny = <%= @hosts_deny[name].join(",") %>
+     hosts deny = <%= @hosts_deny[name].sort.join(",") %>
 <% end -%>
      dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.7z
 <% end -%>