test_create_temp_file: file.managed: - name: /tmp/test.file - mode: 0666 - user: root - group: root - template: jinja - contents: | {% set pillar = salt['pillar.get']('test') %} {{ pillar.foo }} {{ pillar.bar }} test_create_other_temp_file: file.managed: - name: /tmp/test2.file - mode: 0444 - user: root - group: root - template: jinja - source: salt://test/files/test.template