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: packages:
teams: { status: installed } teams: { status: installed }
python3-susepubliccloudinfo: { status: installed } python3-susepubliccloudinfo: { status: installed }
pattern:kvm_server: { status: installed }
pattern:kvm_tools: { status: installed }
firefox: firefox:
addons: addons:

View File

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

View File

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