Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2016 17:27
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 anonymous/ff9517464cb8a8c47c5dd27c10f0079d to your computer and use it in GitHub Desktop.
Save anonymous/ff9517464cb8a8c47c5dd27c10f0079d to your computer and use it in GitHub Desktop.

Pillar data:

foo:
  keyvalue: |
    MYKEYVALUEHERE

Jinja template:

{{ salt['pillar.get']('{{topID}}:keyvalue ','keynotfound') }}

.sls file

{% for topID in topIDs  %}
 <do some things including the jinja template>
{% endfor %}

pillar data is presented to host :

salt-call pillar.get foo:keyvalue returns expected value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment