--- {%- from "gobackup/map.jinja" import gobackup with context %} gobackup-config-dir: file.directory: - name: {{ gobackup.config_dir }} - user: root - group: root - mode: 700 gobackup-config-file: file.managed: - name: {{ gobackup.config_dir }}/gobackup.yml - source: salt://gobackup/templates/gobackup.yml.j2 - template: jinja