Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wazuh): Add JVM proxy configuration for Slack notifications #1445

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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