updated pkg state

This commit is contained in:
Paul 2023-01-04 23:36:53 +01:00
parent 3368386e15
commit 6b4126f8d2
3 changed files with 5 additions and 15 deletions

View File

@ -5,5 +5,5 @@ pkg-full-upgrade:
- refresh: true
pkg-install-apt-transport-https:
pkg.latest:
pkg.installed:
- name: apt-transport-https

View File

@ -1,13 +1,8 @@
---
{%- from "pkg/map.jinja" import pkg with context %}
{%- if pkg.aptpkgs|length > 0 %}
pkg-install:
pkg.installed:
- pkgs:
{%- for pkg in pkg.aptpkgs %}
- {{ pkg }}
{%- endfor %}
- pkgs: {{ pkg.aptpkgs }}
- refresh: false
#- require:
# - sls: repos.prereqs
{%- endif %}
- require:
- sls: repos.prereqs

View File

@ -1,10 +1,5 @@
---
{%- from "pkg/map.jinja" import pkg with context %}
{%- if pkg.remove|length > 0 %}
pkg-remove:
pkg.purged:
- pkgs:
{%- for pkg in pkg.remove %}
- {{ pkg }}
{%- endfor %}
{%- endif %}
- pkgs: {{ pkg.remove }}