0
0
mirror of https://github.com/saltstack-formulas/timezone-formula.git synced 2024-11-28 05:37:59 +01:00
timezone-formula/timezone/map.jinja
Mark Gomersbach 7e6ad3bbfd
Set vars in YAML files
- Add defaults YAML
- Add osfamilymap YAML
- Add lookup dict merge to support user overrides
- Add Gentoo support
2018-10-15 15:05:01 +02:00

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,
) %}