paulbsd-salt/states/pkg/manual.sls

13 lines
358 B
Plaintext
Raw Permalink Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "pkg/map.jinja" import pkg with context %}
{%- if pkg.manual|length > 0 %}
{%- for pkg in pkg.manual %}
{%- if salt['pkg.version'](pkg.name) != pkg.version or salt['pkg.version'](pkg.name) == None %}
pkg-install-manual-{{ pkg.name }}:
pkg.installed:
- sources:
- {{ pkg.name }}: {{ pkg.src }}
{%- endif %}
{%- endfor %}
{%- endif %}