paulbsd-salt/states/gitea/map.jinja
2020-07-10 00:58:55 +02:00

19 lines
416 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
)
-%}