X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a68415b8f2bf106b6ea5948b0605c897b516ef4f..c4817c654797638bf16b54f4f9b69ed3715625cb:/cookbooks/logstash/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/logstash/recipes/default.rb b/cookbooks/logstash/recipes/default.rb index cf8405ff8..3f2c98f91 100644 --- a/cookbooks/logstash/recipes/default.rb +++ b/cookbooks/logstash/recipes/default.rb @@ -66,7 +66,7 @@ end forwarders = search(:node, "recipes:logstash\\:\\:forwarder") # ~FC010 -forwarders.each do |forwarder| +forwarders.sort_by { |n| n[:fqdn] }.each do |forwarder| forwarder.interfaces(:role => :external) do |interface| firewall_rule "accept-lumberjack-#{forwarder}" do action :accept @@ -82,7 +82,7 @@ end gateways = search(:node, "roles:gateway") # ~FC010 -gateways.each do |gateway| +gateways.sort_by { |n| n[:fqdn] }.each do |gateway| gateway.interfaces(:role => :external) do |interface| firewall_rule "accept-lumberjack-#{gateway}" do action :accept