mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
set ip for wazuh-register-agent and dont apply nginx in setup for receiver
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user