Skip to content
Snippets Groups Projects
Select Git revision
  • 10a9852e96e3f516aadad58dfb0905ade800b29d
  • main default protected
  • SOAPP_2.0_development
  • Developement_Karger
4 results

testCppArduino.txt

Blame
  • init.sls 667 B
    # -*- coding: utf-8 -*-
    # vim: ft=sls
    ---
    {#- Get the `tplroot` from `tpldir` #}
    {%- set tplroot = tpldir.split("/")[0] %}
    {%- from tplroot ~ "/map.jinja" import mysql with context %}
    
    {%- set _mapdata = {
          "values": mysql,
        } %}
    {%- do salt["log.debug"]("### MAP.JINJA DUMP ###\n" ~ _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:
        - name: {{ output_file }}
        - source: salt://{{ tplroot }}/_mapdata/_mapdata.jinja
        - template: jinja
        - context:
            map: {{ _mapdata | yaml }}