Fleet standaline custom fqdn fixes

This commit is contained in:
Josh Brower
2020-06-06 10:03:25 -04:00
parent 0890171527
commit 33f21c05f7
2 changed files with 3 additions and 3 deletions

View File

@@ -5,9 +5,9 @@
{% set CUSTOM_FLEET_HOSTNAME = salt['pillar.get']('static:fleet_custom_hostname', None) %}
{% if CUSTOM_FLEET_HOSTNAME != None %}
{% set HOSTNAME = {{ CUSTOM_FLEET_HOSTNAME }} %}
{% set HOSTNAME = CUSTOM_FLEET_HOSTNAME %}
{% else %}
{% set HOSTNAME = {{ grains.host }} %}
{% set HOSTNAME = grains.host %}
{% endif %}
so/fleet: