expanded packages state

This commit is contained in:
Jonas Forsberg
2020-05-14 09:19:39 +02:00
parent e8c854c692
commit 2c0a0ca638
4 changed files with 18 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
{% for pkg in salt['pillar.get']('packages', []) %}
Install {{ pkg }}:
pkg.installed:
- name: {{ pkg }}
- refresh: false
{% for package, args in pillar['packages'].items() %}
{% if args['status'] != 'ignore' %}
{{ package }}:
pkg.{{ args['status'] }}
{% endif %}
{% endfor %}