wazuh-helm
wazuh-helm copied to clipboard
Question: how to modify config files
So I'm seriously wondering the propose "right-way" to modify the ossec.conf in the chart.
When I look in the values.yaml I see the following snippets
## @param wazuh.master.conf Config for the wazuh master, do not change!
##
conf: |
{{ include "wazuh.master.conf" . }}
and
## @param wazuh.worker.conf Config for the wazuh worker, do not change!
##
conf: |
{{ include "wazuh.worker.conf" . }}
which refer to the defined values in the _helpers.tpl template file. They reference to use the corresponding extraConf values that get appended to the configurations. So do we just replicate the XML blocks in the extraConf that we want to make changes to?
As a use-case example, I'm wanting to change the <global>...</global> block to enable email_notification and set the smtp_server, email_from and email_to values. These are not templated to allow modifying them in either the wazuh.master.conf or wazuh.worker.conf, so then what is the correct way to do so?