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