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:35:52 +02:00
|
|
|
timezone.symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ confmap.path-localtime }}
|
|
|
|
- target: {{ confmap.path-zoneinfo }}{{ timezone }}
|
|
|
|
- force: true
|
|
|
|
- require:
|
|
|
|
- pkg: {{ confmap.pkgname }}
|