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) %}
|
2016-09-28 16:14:08 +02:00
|
|
|
{% from "timezone/map.jinja" import confmap with context %}
|
2015-04-25 11:04:14 +02:00
|
|
|
|
|
|
|
timezone_setting:
|
|
|
|
timezone.system:
|
|
|
|
- name: {{ timezone }}
|
|
|
|
- utc: {{ utc }}
|
2016-09-28 16:14:08 +02:00
|
|
|
|
|
|
|
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 }}
|