Skip to content

Commit

Permalink
Merge pull request #1445 from stackhpc/wazuh_alerts_proxy_fix
Browse files Browse the repository at this point in the history
feat(wazuh): Add JVM proxy configuration for Slack notifications
  • Loading branch information
grzegorzkoper authored Jan 9, 2025
2 parents 1b41286 + 42724cb commit 8bb62b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions etc/kayobe/ansible/wazuh-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,23 @@
notify:
- Restart wazuh

- name: Add JVM proxy settings to wazuh-indexer
blockinfile:
path: "/etc/wazuh-indexer/jvm.options"
state: present
owner: root
group: wazuh
marker: "# {mark} ANSIBLE MANAGED BLOCK JVM PROXY SETTINGS"
block: |
-Dhttp.proxyHost={{ http_proxy_url | urlsplit('hostname') }}
-Dhttp.proxyPort={{ http_proxy_url | urlsplit('port') }}
-Dhttps.proxyHost={{ http_proxy_url | urlsplit('hostname') }}
-Dhttps.proxyPort={{ http_proxy_url | urlsplit('port') }}
backup: yes
when: http_proxy_url is defined
notify:
- Restart wazuh-indexer

- name: Perform health check against filebeat
command: filebeat test output
changed_when: false
Expand All @@ -126,3 +143,8 @@
service:
name: wazuh-manager
state: restarted

- name: Restart wazuh-indexer
service:
name: wazuh-indexer
state: restarted

0 comments on commit 8bb62b4

Please sign in to comment.