MEschenbacher's Wireguard Saltstack Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

22 linhas
864B

  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. ) %}