Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created October 24, 2016 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whytewolf/536fcb390510e113ca7745aac2c5d4f9 to your computer and use it in GitHub Desktop.
Save whytewolf/536fcb390510e113ca7745aac2c5d4f9 to your computer and use it in GitHub Desktop.
local:
----------
ID: /tmp/test
Function: file.managed
Result: True
Comment: File /tmp/test is in the correct state
Started: 11:05:48.700039
Duration: 33.139 ms
Changes:
Summary for local
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
Total run time: 33.139 ms
{% import 'testing2/test.sls' as defaults %}
{{ defaults.hostname }}
/tmp/test: # this is for testing jinja stuff
file.managed:
- source: salt://testing/test
- mode: 644
- template: jinja
{%- set hostname = grains['id'] %}
salt01.wolfcloud.bad4.us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment