SuperTux88's Diaspora Saltstack 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.

123456789101112131415161718
  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 diaspora as mapdata with context %}
  7. {%- do salt['log.debug']('### MAP.JINJA DUMP ###\n' ~ mapdata | yaml(False)) %}
  8. {%- set output_file = '/tmp/salt_mapdata_dump.yaml' %}
  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 }}