Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
501B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. ---
  4. {#- Get the `tplroot` from `tpldir` #}
  5. {%- set tplroot = tpldir.split('/')[0] %}
  6. {%- from tplroot ~ "/map.jinja" import mapdata with context %}
  7. {%- set output_file = '/tmp/salt_mapdata_dump.yaml' %}
  8. {%- do salt['log.debug']( mapdata | yaml(False) ) %}
  9. {{ tplroot }}-mapdata-dump:
  10. file.managed:
  11. - name: {{ output_file }}
  12. - source: salt://{{ tplroot }}/_mapdata/_mapdata.jinja
  13. - template: jinja
  14. - context:
  15. map: {{ mapdata | yaml }}