Forked from ryan-lane/Calling salt-call with environment variables
Created
June 11, 2014 23:17
-
-
Save gravyboat/9db486208a6e576e5065 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYENVVAR="world" salt-call state.template test.sls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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