mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/wazuh-agent: make agent_name configurable (#4657)
This commit is contained in:
+7
@@ -15,6 +15,13 @@
|
||||
<type>text</type>
|
||||
<help>Specifies the IP address or the hostname of the Wazuh manager.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>agent.general.agent_name</id>
|
||||
<label>Agent hostname</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Specifies the hostname of this agent.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>agent.general.protocol</id>
|
||||
<label>Protocol</label>
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
<Required>Y</Required>
|
||||
<IpAllowed>Y</IpAllowed>
|
||||
</server_address>
|
||||
<agent_name type="HostnameField">
|
||||
<Required>N</Required>
|
||||
<IpAllowed>N</IpAllowed>
|
||||
</agent_name>
|
||||
<protocol type="OptionField">
|
||||
<default>tcp</default>
|
||||
<Required>Y</Required>
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
</server>
|
||||
<crypto_method>aes</crypto_method>
|
||||
<enrollment>
|
||||
{% if not helpers.empty('OPNsense.WazuhAgent.general.agent_name') %}
|
||||
<agent_name>{{ OPNsense.WazuhAgent.general.agent_name }}</agent_name>
|
||||
{% endif %}
|
||||
<port>{{OPNsense.WazuhAgent.auth.port}}</port>
|
||||
</enrollment>
|
||||
</client>
|
||||
|
||||
Reference in New Issue
Block a user