MEschenbacher's Wireguard Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

map.jinja 864B

6 yıl önce
123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Start with defaults from defaults.yaml #}
  4. {% import_yaml "wireguard/defaults.yaml" as default_settings %}
  5. {% import_yaml "wireguard/osarchmap.yaml" as osarchmap %}
  6. {% import_yaml "wireguard/osfamilymap.yaml" as osfamilymap %}
  7. {% import_yaml "wireguard/osmap.yaml" as osmap %}
  8. {% import_yaml "wireguard/osfingermap.yaml" as osfingermap %}
  9. {% set wireguard = salt['grains.filter_by'](default_settings,
  10. default='wireguard',
  11. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  12. merge=salt['grains.filter_by'](osmap, grain='os',
  13. merge=salt['grains.filter_by'](osfingermap, grain='osfinger',
  14. merge=salt['grains.filter_by'](salt['grains.filter_by'](osarchmap, grain='osfinger'), grain='osarch',
  15. merge=salt['pillar.get']('wireguard:lookup'))
  16. )
  17. )
  18. )
  19. ) %}