mirror of
https://github.com/saltstack-formulas/timezone-formula.git
synced 2024-11-27 23:07:47 +01:00
Initial commit.
This commit is contained in:
commit
93837b5be6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.swp
|
31
README.rst
Normal file
31
README.rst
Normal 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
3
pillar.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
timezone:
|
||||||
|
name: 'Europe/Berlin'
|
||||||
|
utc: True
|
9
timezone/init.sls
Normal file
9
timezone/init.sls
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user