Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gravyboat/9db486208a6e576e5065 to your computer and use it in GitHub Desktop.
Save gravyboat/9db486208a6e576e5065 to your computer and use it in GitHub Desktop.
MYENVVAR="world" salt-call state.template test.sls
Create a file with contents from an environment variable:
file.managed:
- name: /tmp/hello
- contents: {{ salt['environ.get']('MYENVVAR') }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment