From f297e557352ef0c381e5abd15cce376e0b0e06f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81lvarez?= <128592227+malvads@users.noreply.github.com> Date: Thu, 26 Dec 2024 16:37:43 +0000 Subject: [PATCH] Update config.rb --- resources/providers/config.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/providers/config.rb b/resources/providers/config.rb index 4148dc9..a5fc9a1 100644 --- a/resources/providers/config.rb +++ b/resources/providers/config.rb @@ -368,6 +368,8 @@ notifies :restart, 'service[logstash]', :delayed unless node['redborder']['leader_configuring'] end + memcached_servers = node['redborder']['memcached']['hosts'] + template "#{pipelines_dir}/netflow/05_threat_intelligence.conf" do source 'netflow_threat_intelligence.conf.erb' owner user @@ -375,6 +377,7 @@ mode '0644' ignore_failure true cookbook 'logstash' + variables(memcached_servers: memcached_servers) notifies :restart, 'service[logstash]', :delayed unless node['redborder']['leader_configuring'] end @@ -934,6 +937,7 @@ mode '0644' ignore_failure true cookbook 'logstash' + variables(memcached_servers: memcached_servers) notifies :restart, 'service[logstash]', :delayed unless node['redborder']['leader_configuring'] end