mirror of
https://github.com/saltstack-formulas/timezone-formula.git
synced 2024-11-28 05:37:59 +01:00
7e6ad3bbfd
- Add defaults YAML - Add osfamilymap YAML - Add lookup dict merge to support user overrides - Add Gentoo support
15 lines
590 B
Django/Jinja
15 lines
590 B
Django/Jinja
{% import_yaml "timezone/defaults.yaml" as defaults %}
|
|
{% import_yaml "timezone/osfamilymap.yaml" as osfamilymap %}
|
|
|
|
{% set osfam = salt['grains.filter_by'](
|
|
osfamilymap,
|
|
grain='os_family'
|
|
) or {} %}
|
|
|
|
{% do salt['defaults.merge'](defaults, osfam) %}
|
|
|
|
{%- set confmap = salt['pillar.get'](
|
|
'timezone:lookup',
|
|
default=defaults,
|
|
merge=True,
|
|
) %} |