From ea86e44baf092b1e0f92b2432cd5ed77e03d80d6 Mon Sep 17 00:00:00 2001 From: Arnaud Launay Date: Wed, 17 Jan 2024 13:32:01 +0100 Subject: [PATCH] Add ip_update support --- manifests/agent.pp | 1 + manifests/params_agent.pp | 1 + templates/wazuh_agent.conf.erb | 3 +++ 3 files changed, 5 insertions(+) diff --git a/manifests/agent.pp b/manifests/agent.pp index b1ba6c94..2526b68d 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -63,6 +63,7 @@ $ossec_protocol = $wazuh::params_agent::ossec_protocol, $wazuh_max_retries = $wazuh::params_agent::wazuh_max_retries, $wazuh_retry_interval = $wazuh::params_agent::wazuh_retry_interval, + $wazuh_ip_update_interval = $wazuh::params_agent::wazuh_ip_update_interval, $ossec_config_ubuntu_profiles = $wazuh::params_agent::ossec_config_ubuntu_profiles, $ossec_config_centos_profiles = $wazuh::params_agent::ossec_config_centos_profiles, $ossec_notify_time = $wazuh::params_agent::ossec_notify_time, diff --git a/manifests/params_agent.pp b/manifests/params_agent.pp index 690d436a..537b50f3 100644 --- a/manifests/params_agent.pp +++ b/manifests/params_agent.pp @@ -62,6 +62,7 @@ $ossec_protocol = 'tcp' $wazuh_max_retries = '5' $wazuh_retry_interval = '5' + $wazuh_ip_update_interval = undef $ossec_config_ubuntu_profiles = 'ubuntu, ubuntu18, ubuntu18.04' $ossec_config_centos_profiles = 'centos, centos7, centos7.6' $ossec_notify_time = 10 diff --git a/templates/wazuh_agent.conf.erb b/templates/wazuh_agent.conf.erb index 072f44dd..227a8b10 100644 --- a/templates/wazuh_agent.conf.erb +++ b/templates/wazuh_agent.conf.erb @@ -21,6 +21,9 @@ <%- if @ossec_time_reconnect then -%> <%= @ossec_time_reconnect %> <%- end -%> + <%- if @wazuh_ip_update_interval then -%> + <%= @wazuh_ip_update_interval %> + <%- end -%> <%- if @ossec_crypto_method then -%> <%= @ossec_crypto_method %> <%- end -%>