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 - refresh: true
pkg-install-apt-transport-https: pkg-install-apt-transport-https:
pkg.latest: pkg.installed:
- name: apt-transport-https - name: apt-transport-https

View File

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

View File

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