MEschenbacher's Wireguard Saltstack Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

6 år sedan
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. ) %}