-
-
Save jalons/e78df2324c59a24a4c29 to your computer and use it in GitHub Desktop.
This file contains 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
pillar_test_from_cli: | |
file.managed: | |
- name: /tmp/pillar.txt | |
- template: jinja | |
- source: salt://pill_test/pillar.txt |
This file contains 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
salt -G kernel:Linux state.sls pill_test pillar="{my_pillar: '1.0.0'}" env=Staging | |
minion: | |
---------- | |
State: - file | |
Name: /tmp/pillar.txt | |
Function: managed | |
Result: False | |
Comment: Unable to manage file: Jinja variable 'my_pillar' is undefined; line 1 | |
--- | |
{{ my_pillar }} <====================== | |
--- | |
Changes: | |
Summary | |
------------ | |
Succeeded: 0 | |
Failed: 1 | |
------------ | |
Total: 1 |
This file contains 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
{{ my_pillar }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment