{% from "wireguard/map.jinja" import wireguard with context %} | {% from "wireguard/map.jinja" import wireguard with context %} | ||||
wireguard: | |||||
pkg.installed: | |||||
- name: {{ wireguard.package }} | |||||
{% for interface, values in salt['pillar.get']('wireguard:interfaces', {}).items() %} | {% for interface, values in salt['pillar.get']('wireguard:interfaces', {}).items() %} | ||||
wireguard_{{ interface }}: | wireguard_{{ interface }}: | ||||
wg.present: | wg.present: |
# vim: ft=jinja | # vim: ft=jinja | ||||
{% import_yaml "wireguard/defaults.yaml" as defaults %} | {% import_yaml "wireguard/defaults.yaml" as defaults %} | ||||
{% import_yaml "wireguard/osmap.yaml" as osmap %} | |||||
{% set wireguard = salt['grains.filter_by']( | {% set wireguard = salt['grains.filter_by']( | ||||
defaults, | defaults, |
Debian: | |||||
foo: bar |