set interface for hypervisor/managerhype

This commit is contained in:
Josh Patterson
2025-04-01 09:27:50 -04:00
parent a60e55e5cd
commit b22fe5bd3d
3 changed files with 12 additions and 7 deletions
+7
View File
@@ -3,6 +3,13 @@
https://securityonion.net/license; you may not use this file except in compliance with the
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 %}
{% set interface = 'br0' %}
{% else %}
{% set interface = pillar.host.mainint %}
{% endif %}
{% import_yaml 'salt/minion.defaults.yaml' as saltminion %}
{% set SALTVERSION = saltminion.salt.minion.version | string %}
{% set INSTALLEDSALTVERSION = grains.saltversion | string %}