0
0
mirror of https://github.com/saltstack-formulas/timezone-formula.git synced 2024-11-28 12:07:24 +01:00
timezone-formula/timezone/init.sls

21 lines
535 B
Plaintext
Raw Normal View History

2015-04-25 11:04:14 +02:00
# This state configures the timezone.
{%- set timezone = salt['pillar.get']('timezone:name', 'Europe/Berlin') %}
{%- set utc = salt['pillar.get']('timezone:utc', True) %}
{% from "timezone/map.jinja" import confmap with context %}
2015-04-25 11:04:14 +02:00
timezone_setting:
timezone.system:
- name: {{ timezone }}
- utc: {{ utc }}
timezone.packages:
pkg.installed:
- name: {{ confmap.pkgname }}
2016-09-28 16:26:49 +02:00
file.symlink:
- name: {{ confmap.path-localtime }}
- target: {{ path-zoneinfo }}{{ timezone }}
- require:
- pkg: {{ confmap.pkgname }}