Initial commit.
This commit is contained in:
commit
93837b5be6
|
@ -0,0 +1 @@
|
|||
*.swp
|
|
@ -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.
|
|
@ -0,0 +1,3 @@
|
|||
timezone:
|
||||
name: 'Europe/Berlin'
|
||||
utc: True
|
|
@ -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 }}
|
Loading…
Reference in New Issue