-
-
Save jalons/9580849f8814d8415bed 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
# And trying to be clever with iterkeys() over the dict: | |
{% for app in pillar.get('application') %} | |
{% for key, value in app.iteritems() %} | |
{{ key }}: | |
pkg.installed: | |
- name: {{ key }} | |
- version: {{ value }} | |
{% endfor %} | |
{% endfor %} | |
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
m3.local: | |
Data failed to compile: | |
---------- | |
Rendering SLS "Staging:deploy" failed: Unknown yaml render error; line 14 | |
--- | |
[...] | |
{'MyApp': 'Release.2.1.4.rc1'}: | |
pkg.installed: | |
- name: {'MyApp': 'Release.2.1.4.rc1'} | |
- version: pillar.get( {'MyApp': 'Release.2.1.4.rc1'} ) <====================== | |
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
m3.local: | |
---------- | |
application: | |
---------- | |
- MyApp: | |
Release.2.1.4.rc1 | |
---------- | |
- MyPackage: | |
0.9.9 |
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
{% for app in pillar.get('application') %} | |
{{ app }}: | |
pkg.installed: | |
- name: {{ app }} | |
- version: pillar.get( {{ app }} ) | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment