Skip to content

Commit 24ede41

Browse files
committed
Option to select timezone.
1 parent b096cf3 commit 24ede41

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Role Variables
2929

3030
* `graphite_user` - The user that carbon and uwsgi is executed as, default: `graphite`
3131
* `graphite_secret_key` - Change this to a random string, default: `UNSAFE_DEFAULT`
32+
* `graphite_time_zone` - Select timezone, default: `America/Los_Angeles`
3233
* `graphite_admin_date_joined`, default: `"2014-07-21T10:11:17.464"`
3334
* `graphite_admin_email`, default: `"root@localhost"`
3435
* `graphite_admin_first_name`, default: `""`

defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
graphite_user: graphite
44
graphite_secret_key: UNSAFE_DEFAULT
5+
graphite_time_zone: "America/Los_Angeles"
56

67
graphite_admin_date_joined: "2014-07-21T10:11:17.464"
78
graphite_admin_email: "root@localhost"

templates/local_settings.py.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SECRET_KEY = '{{ graphite_secret_key }}'
2020
# Set your local timezone (Django's default is America/Chicago)
2121
# If your graphs appear to be offset by a couple hours then this probably
2222
# needs to be explicitly set to your local timezone.
23-
#TIME_ZONE = 'America/Los_Angeles'
23+
TIME_ZONE = '{{ graphite_time_zone }}'
2424

2525
# Override this to provide documentation specific to your Graphite deployment
2626
#DOCUMENTATION_URL = "http://graphite.readthedocs.org/"

0 commit comments

Comments
 (0)