strip node suffix

This commit is contained in:
Mike Reeves
2020-08-11 11:37:53 -04:00
parent 05a05b5e9b
commit 348f7f39cc
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ so-elasticsearch:
{%- if ismanager %}
{%- if salt['pillar.get']('nodestab', {}) %}
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
- {{ SN }}:{{ SNDATA.ip }}
- {{ SN.split('_')|first }}:{{ SNDATA.ip }}
{%- endfor %}
{%- endif %}
{%- endif %}