test(map): standardise map.jinja verification

* Automated using https://github.com/myii/ssf-formula/pull/281
This commit is contained in:
Imran Iqbal
2020-12-22 00:43:03 +00:00
parent 7af3bf255d
commit 2bab68f5ff
6 changed files with 54 additions and 15 deletions
+3 -2
View File
@@ -5,9 +5,10 @@
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import mapdata with context %}
{%- set output_file = '/tmp/salt_mapdata_dump.yaml' %}
{%- do salt['log.debug']('### MAP.JINJA DUMP ###\n' ~ mapdata | yaml(False)) %}
{%- do salt['log.debug']( mapdata | yaml(False) ) %}
{%- set output_dir = '/temp' if grains.os_family == 'Windows' else '/tmp' %}
{%- set output_file = output_dir ~ '/salt_mapdata_dump.yaml' %}
{{ tplroot }}-mapdata-dump:
file.managed: