SuperTux88's Diaspora Saltstack Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

19 Zeilen
540B

  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 }}