18 lines
409 B
Django/Jinja
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
|
|
)
|
|
-%}
|