keys = data_bag_item("logstash", "keys")
package %w[
- openjdk-8-jre-headless
+ openjdk-11-jre-headless
logstash
]
forwarders = []
search(:node, "recipes:logstash\\:\\:forwarder").each do |forwarder|
- forwarder.interfaces(:role => :external).map do |interface|
- forwarders << interface[:address]
- end
+ forwarders.append(forwarder.ipaddresses(:role => :external))
end
search(:node, "roles:gateway").each do |forwarder|
- forwarder.interfaces(:role => :external).map do |interface|
- forwarders << interface[:address]
- end
+ forwarders.append(forwarder.ipaddresses(:role => :external))
end
firewall_rule "accept-logstash" do