I might be missing something or this might just be the wrong way to layout pillar data.
I want to iterate through the second level of pillar data.
Pillar example:
repo:
Option1:
version1:
display_name: "abcde"
version2:
display_name: "fghij"
Option2:
version1:
display_name: "klmn"`
Sls:
{% for version, versioninfo in salt['pillar.get']('repo', {}).iteritems() %}
{{ versioninfo[] }}{{ versioninfo[]['display_name'] }}
{% endfor %}`
I want to return each version and display name, effectively ignoring the first level of pillar data. Obviously the above jinja does not work, but is there a way to do this?