expanded packages state

This commit is contained in:
Jonas Forsberg 2020-05-14 09:19:39 +02:00
parent e8c854c692
commit 2c0a0ca638
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
4 changed files with 18 additions and 17 deletions

View File

@ -1,2 +1,2 @@
packages:
weechat:
weechat: { status: installed }

View File

@ -1,6 +1,6 @@
packages:
teams:
rocketchat:
teams: { status: installed }
rocketchat: { status: installed }
repositories:
msteams:

View File

@ -1,10 +1,11 @@
packages:
vim:
git:
curl:
htop:
terminator:
borgbackup:
go:
nextcloud-client:
keepassxc:
vim: { status: installed }
git: { status: installed }
curl: { status: installed }
tmux: { status: installed }
htop: { status: installed }
terminator: { status: installed }
borgbackup: { status: installed }
go: { status: installed }
nextcloud-client: { status: installed }
keepassxc: { status: installed }

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 %}