# -*- coding: utf-8 -*- # vim: ft=jinja {#- Start with defaults from defaults.yaml #} {% import_yaml "wireguard/defaults.yaml" as default_settings %} {% import_yaml "wireguard/osarchmap.yaml" as osarchmap %} {% import_yaml "wireguard/osfamilymap.yaml" as osfamilymap %} {% import_yaml "wireguard/osmap.yaml" as osmap %} {% import_yaml "wireguard/osfingermap.yaml" as osfingermap %} {% set wireguard = salt['grains.filter_by'](default_settings, default='wireguard', merge=salt['grains.filter_by'](osfamilymap, grain='os_family', merge=salt['grains.filter_by'](osmap, grain='os', merge=salt['grains.filter_by'](osfingermap, grain='osfinger', merge=salt['grains.filter_by'](salt['grains.filter_by'](osarchmap, grain='osfinger'), grain='osarch', merge=salt['pillar.get']('wireguard:lookup')) ) ) ) ) %}