File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
roles/wazuh/ansible-wazuh-agent Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -352,13 +352,25 @@ wazuh_agent_active_response:
352
352
ca_store_macos : ' etc/wpk_root.pem'
353
353
ca_verification : ' yes'
354
354
355
+ # # Agent Upgrade
356
+ wazuh_agent_agent_upgrade :
357
+ enabled : ' yes'
358
+ notification_wait_start : ' 60s'
359
+ notification_wait_factor : ' 4'
360
+ notification_wait_max : ' 2h'
361
+ ca_verification : ' yes'
362
+ ca_store : " {{ wazuh_dir }}/etc/wpk_root.pem"
363
+ ca_store_win : ' wpk_root.pem'
364
+ ca_store_macos : ' etc/wpk_root.pem'
365
+
355
366
# # Logging
356
367
wazuh_agent_log_format : ' plain'
357
368
358
369
# wazuh_agent_config
359
370
wazuh_agent_config_defaults :
360
371
repo : ' {{ wazuh_repo }}'
361
372
active_response : ' {{ wazuh_agent_active_response }}'
373
+ agent_upgrade : ' {{ wazuh_agent_agent_upgrade }}'
362
374
log_format : ' {{ wazuh_agent_log_format }}'
363
375
client_buffer : ' {{ wazuh_agent_client_buffer }}'
364
376
syscheck : ' {{ wazuh_agent_syscheck }}'
Original file line number Diff line number Diff line change 472
472
<active-response >
473
473
<disabled >{{ wazuh_agent_config.active_response.ar_disabled|default('no') }}</disabled >
474
474
<ca _verification >{{ wazuh_agent_config.active_response.ca_verification }}</ca _verification >
475
- {% if ansible_system == "Windows" %}
475
+ {% if ansible_os_family == "Windows" %}
476
476
<ca _store >{{ wazuh_agent_config.active_response.ca_store_win }}</ca _store >
477
- {% elif ansible_system == "Darwin" %}
477
+ {% elif ansible_os_family == "Darwin" %}
478
478
<ca _store >{{ wazuh_agent_config.active_response.ca_store_macos }}</ca _store >
479
479
{% else %}
480
480
<ca _store >{{ wazuh_agent_config.active_response.ca_store }}</ca _store >
485
485
<log _format >{{ wazuh_agent_config.log_format }}</log _format >
486
486
</logging >
487
487
488
+ <agent-upgrade >
489
+ <enabled >{{ wazuh_agent_config.agent_upgrade.enabled }}</enabled >
490
+ <notification _wait_start >{{ wazuh_agent_config.agent_upgrade.notification_wait_start }}</notification _wait_start >
491
+ <notification _wait_factor >{{ wazuh_agent_config.agent_upgrade.notification_wait_factor }}</notification _wait_factor >
492
+ <notification _wait_max >{{ wazuh_agent_config.agent_upgrade.notification_wait_max }}</notification _wait_max >
493
+ <ca _verification >
494
+ <enabled >{{ wazuh_agent_config.agent_upgrade.ca_verification }}</enabled >
495
+ {% if ansible_os_family == "Windows" %}
496
+ <ca _store >{{ wazuh_agent_config.agent_upgrade.ca_store_win }}</ca _store >
497
+ {% elif ansible_os_family == "Darwin" %}
498
+ <ca _store >{{ wazuh_agent_config.agent_upgrade.ca_store_macos }}</ca _store >
499
+ {% else %}
500
+ <ca _store >{{ wazuh_agent_config.agent_upgrade.ca_store }}</ca _store >
501
+ {% endif %}
502
+ </ca _verification >
503
+ </agent-upgrade >
504
+
488
505
</ossec _config >
You can’t perform that action at this time.
0 commit comments