From dd1e92c5cd37aefaa887deeecf6b4ad3ed79a34b Mon Sep 17 00:00:00 2001 From: zenidd Date: Mon, 21 Dec 2020 12:04:28 +0100 Subject: [PATCH] integrations: use manager ossec conf as render target. Conditionally render logs format setting. --- manifests/integration.pp | 2 +- templates/fragments/_integration.erb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/integration.pp b/manifests/integration.pp index 1bcafa92..e288622b 100644 --- a/manifests/integration.pp +++ b/manifests/integration.pp @@ -14,7 +14,7 @@ require wazuh::params_manager concat::fragment { $name: - target => 'ossec.conf', + target => 'manager_ossec.conf', order => 60, content => template('wazuh/fragments/_integration.erb') } diff --git a/templates/fragments/_integration.erb b/templates/fragments/_integration.erb index fe202875..94b984a2 100644 --- a/templates/fragments/_integration.erb +++ b/templates/fragments/_integration.erb @@ -18,7 +18,9 @@ <% if @in_location != '' -%> <%= @in_location %> <% end %> + <% if @in_format != '' -%> <%= @in_format %> + <% end %> <% if @in_max_log != '' -%> <%= @in_max_log %> <% end %>