packages-formula/packages/remote_pkgs.sls

17 lines
423 B
Text
Raw Normal View History

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