packages-formula/packages/remote_pkgs.sls
Robin Schneider abe828663e
refactor(includes): Use relative state include
Allow to rename the formula so it does not collide with others with the same name
(ie, SUSE Manager's)
2021-06-14 11:59:19 -03:00

16 lines
423 B
Text

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- from "./map.jinja" import packages with context %}
{%- set wanted_rem_pkgs = packages.remote_pkgs %}
### REMOTE PKGS to install directly from a remote URL. Must be a deb/rpm file
{%- if wanted_rem_pkgs %}
remote_packages:
pkg.installed:
- sources:
{%- for package, url in wanted_rem_pkgs.items() %}
- {{ package }}: {{ url }}
{%- endfor %}
{%- endif %}