set ip for wazuh-register-agent and dont apply nginx in setup for receiver

This commit is contained in:
m0duspwnens
2021-12-07 16:50:41 -05:00
parent 429b9cab2f
commit 8c95d0f36b
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,9 @@
{%- set ip = salt['pillar.get']('elasticsearch:mainip', '') %}
{%- elif grains['role'] == 'so-sensor' %}
{%- set ip = salt['pillar.get']('sensor:mainip', '') %}
{%- else %}
{%- set mainint = salt['pillar.get']('host:mainint') %}
{%- set ip = salt['grains.get']('ip_interfaces:' ~ mainint)[0] %}
{%- endif %}
#!/bin/bash