mirror of
https://github.com/saltstack-formulas/timezone-formula.git
synced 2024-11-28 01:17:58 +01:00
16 lines
591 B
Django/Jinja
16 lines
591 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,
|
|
) %}
|