Skip to content

Instantly share code, notes, and snippets.

@jalons

jalons/init.sls Secret

Created August 27, 2014 18:08
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 jalons/e78df2324c59a24a4c29 to your computer and use it in GitHub Desktop.
Save jalons/e78df2324c59a24a4c29 to your computer and use it in GitHub Desktop.
pillar_test_from_cli:
file.managed:
- name: /tmp/pillar.txt
- template: jinja
- source: salt://pill_test/pillar.txt
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
{{ my_pillar }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment