Change from nodename to host

This commit is contained in:
weslambert
2021-07-06 14:18:39 -04:00
committed by GitHub
parent 2e91f27336
commit 2f3f04e4ca

View File

@@ -146,7 +146,7 @@ so-logstash:
- user: logstash
- extra_hosts:
{% if grains.role in ['so-heavynode'] %}
{% set MANAGER = salt['grains.get']('nodename') %}
{% set MANAGER = salt['grains.get']('host') %}
{% set MANAGERIP = salt['pillar.get']('sensor:mainip') %}
{% else %}
- {{ MANAGER }}:{{ MANAGERIP }}