Added pattern support for package install

This commit is contained in:
Jonas Forsberg 2020-08-14 15:21:45 +02:00
parent 54e03c14f9
commit b741ad58fc
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
3 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,8 @@ include:
packages:
teams: { status: installed }
python3-susepubliccloudinfo: { status: installed }
pattern:kvm_server: { status: installed }
pattern:kvm_tools: { status: installed }
firefox:
addons:

View File

@ -14,3 +14,4 @@ packages:
# vim-instant-markdown
xdg-utils: { status: installed }
nodejs10: { status: installed }
pattern:devel_basis: { status: installed }

View File

@ -1,6 +1,8 @@
{% for package, args in pillar['packages'].items() %}
{% if args['status'] != 'ignore' %}
{{ package }}:
pkg.{{ args['status'] }}
pkg.{{ args['status'] }}:
- name: {{ package }}
- includes: [pattern]
{% endif %}
{% endfor %}