Skip to content

Instantly share code, notes, and snippets.

@whytewolf

whytewolf/item1 Secret

Created March 31, 2017 14:35
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/259cd4b3406a8a6a65aa49c3b6b8debf to your computer and use it in GitHub Desktop.
Save whytewolf/259cd4b3406a8a6a65aa49c3b6b8debf to your computer and use it in GitHub Desktop.
jinja input:
{{salt['pillar'].keys('test')}}
output:
['boo.us', 'example.com', 'test.com']
jinja input:
{{salt.pillar.get('test',{'test':'go'}).keys()}}
output:
['boo.us', 'example.com', 'test.com']
jinja input:
{{salt.pillar.get('test22',{'test':'go'}).keys()}}
output:
['test']
test:
example.com: voague
test.com: no
boo.us: k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment