paulbsd-salt/states/gitea/map.jinja
2023-10-10 09:07:06 +02:00

18 lines
409 B
Django/Jinja

{%- import_yaml "gitea/defaults.yaml" as defaults -%}
{%- set os_family_map = salt['grains.filter_by']({
'Debian': {},
'Suse': {},
'Arch': {},
'RedHat': {},
}, grain="os_family", merge=salt['pillar.get']('gitea:lookup'))
-%}
{%- do defaults.gitea.update(os_family_map) -%}
{%- set gitea = salt['pillar.get'](
'gitea',
default=defaults.gitea,
merge=True
)
-%}