mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-23 07:25:31 +01:00
set interface for network.ip_addrs for hypervisors
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Elastic License 2.0. #}
|
||||
|
||||
{% set role = salt['grains.get']('role', '') %}
|
||||
{% if role in ['so-hypervisor','so-managerhype'] and salt['network.ip_addrs']('br0')|length > 0 %}
|
||||
{% if role in ['so-hypervisor','so-managerhype'] %}
|
||||
{% set interface = 'br0' %}
|
||||
{% else %}
|
||||
{% set interface = pillar.host.mainint %}
|
||||
|
||||
Reference in New Issue
Block a user