Initial commit.

This commit is contained in:
Florian Bittner 2015-04-25 11:04:14 +02:00
commit 93837b5be6
4 changed files with 44 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.swp

31
README.rst Normal file
View File

@ -0,0 +1,31 @@
========
timezone
========
Formula to configure timezone.
.. note::
See the full `Salt Formulas installation and usage instructions
<http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
Available states
================
.. contents::
:local:
``timezone``
----------
Configures the timezone.
Defaults
========
Default values are:
timezone: 'Europe/Berlin'
utc: True
See mopidy/pillar.example.

3
pillar.example Normal file
View File

@ -0,0 +1,3 @@
timezone:
name: 'Europe/Berlin'
utc: True

9
timezone/init.sls Normal file
View File

@ -0,0 +1,9 @@
# This state configures the timezone.
{%- set timezone = salt['pillar.get']('timezone:name', 'Europe/Berlin') %}
{%- set utc = salt['pillar.get']('timezone:utc', True) %}
timezone_setting:
timezone.system:
- name: {{ timezone }}
- utc: {{ utc }}