]> git.openstreetmap.org Git - chef.git/commitdiff
Sort allow/deny lists in rsyncd.conf
authorTom Hughes <tom@compton.nu>
Fri, 14 Oct 2016 22:05:48 +0000 (23:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 14 Oct 2016 22:05:48 +0000 (23:05 +0100)
cookbooks/rsyncd/templates/default/rsyncd.conf.erb

index 5e169129cf7c1d090fb8ed9b29ca2da9ab6700ce..063ac49d701c96c4e54d6f0c52330f2962511922 100644 (file)
      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 -%>