mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-08-08 16:25:08 +02:00
test(map): standardise map.jinja verification
* Automated using https://github.com/myii/ssf-formula/pull/281
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user