set interface for network.ip_addrs for hypervisors

This commit is contained in:
Josh Patterson
2025-09-24 16:50:29 -04:00
parent 3a87af805f
commit c836dd2acd
3 changed files with 7 additions and 2 deletions

View File

@@ -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 %}