paulbsd-salt/states/tailscale/map.jinja

15 lines
516 B
Plaintext
Raw Normal View History

2024-11-30 18:26:08 +01:00
{%- import_yaml "tailscale/defaults.yaml" as default_settings -%}
2024-11-30 14:45:08 +01:00
2024-11-30 18:26:08 +01:00
{%- import_yaml "tailscale/kernelmap.yaml" as kernelmap %}
{%- import_yaml "tailscale/osarchmap.yaml" as osarchmap %}
2024-11-30 14:45:08 +01:00
{%- set defaults = salt['grains.filter_by'](default_settings,
2024-11-30 18:26:08 +01:00
default='tailscale',
2024-11-30 14:45:08 +01:00
merge=salt['grains.filter_by'](osarchmap, grain='osarch',
merge=salt['grains.filter_by'](kernelmap, grain='kernel')
)
)
-%}
2024-11-30 18:26:08 +01:00
{%- set tailscale = salt['pillar.get']('tailscale', default=defaults, merge=True) -%}