Skip to content

Commit f535945

Browse files
authored
Merge pull request #1447 from stackhpc/cherry-pick-df9519-stackhpc/2023.1
feat(wazuh): Add JVM proxy configuration for Slack notifications (cherry-pick #1445)
2 parents b6111e0 + d67dff4 commit f535945

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

etc/kayobe/ansible/wazuh-manager.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,23 @@
116116
notify:
117117
- Restart wazuh
118118

119+
- name: Add JVM proxy settings to wazuh-indexer
120+
blockinfile:
121+
path: "/etc/wazuh-indexer/jvm.options"
122+
state: present
123+
owner: root
124+
group: wazuh
125+
marker: "# {mark} ANSIBLE MANAGED BLOCK JVM PROXY SETTINGS"
126+
block: |
127+
-Dhttp.proxyHost={{ http_proxy_url | urlsplit('hostname') }}
128+
-Dhttp.proxyPort={{ http_proxy_url | urlsplit('port') }}
129+
-Dhttps.proxyHost={{ http_proxy_url | urlsplit('hostname') }}
130+
-Dhttps.proxyPort={{ http_proxy_url | urlsplit('port') }}
131+
backup: yes
132+
when: http_proxy_url is defined
133+
notify:
134+
- Restart wazuh-indexer
135+
119136
- name: Perform health check against filebeat
120137
command: filebeat test output
121138
changed_when: false
@@ -126,3 +143,8 @@
126143
service:
127144
name: wazuh-manager
128145
state: restarted
146+
147+
- name: Restart wazuh-indexer
148+
service:
149+
name: wazuh-indexer
150+
state: restarted

0 commit comments

Comments
 (0)