From 8fa651e92bf87022633a695d958310ef0c875057 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Tue, 2 Jun 2015 15:03:53 +0000 Subject: [PATCH] a few fixes for graphite-web Signed-off-by: Ricky Elrod --- roles/graphite/graphite/tasks/main.yml | 5 +++++ roles/graphite/graphite/templates/graphite-web.conf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/roles/graphite/graphite/tasks/main.yml b/roles/graphite/graphite/tasks/main.yml index 2276fb3627..b63b665f0a 100644 --- a/roles/graphite/graphite/tasks/main.yml +++ b/roles/graphite/graphite/tasks/main.yml @@ -38,3 +38,8 @@ - service - graphite - carbon + +- name: Initialize graphite-web database (TODO - make this not use sqlite?) + command: /usr/bin/graphite-manage syncdb + tags: + - graphite diff --git a/roles/graphite/graphite/templates/graphite-web.conf b/roles/graphite/graphite/templates/graphite-web.conf index 8263705128..9268428231 100644 --- a/roles/graphite/graphite/templates/graphite-web.conf +++ b/roles/graphite/graphite/templates/graphite-web.conf @@ -1,3 +1,8 @@ + + AllowOverride none + Require all granted + + ServerName graphite.cloud.fedoraproject.org DocumentRoot "/usr/share/graphite/webapp"