From 63262b39f360797537560d43a880e16a409e7fc5 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 9 Feb 2014 16:22:57 -0800 Subject: [PATCH] Fix path to graphite db The onlyif test is looking for a different path than the scripts install the database file to. Adjust it so that we don't run every time. Change-Id: I96c8496fb678e99facc65a01a7d34ab08290416d --- modules/graphite/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/graphite/manifests/init.pp b/modules/graphite/manifests/init.pp index 574508ec10..afa8617549 100644 --- a/modules/graphite/manifests/init.pp +++ b/modules/graphite/manifests/init.pp @@ -105,7 +105,7 @@ class graphite( command => 'python /usr/local/bin/graphite-init-db.py /etc/graphite/admin.ini', cwd => '/usr/local/lib/python2.7/dist-packages/graphite', path => '/bin:/usr/bin', - onlyif => 'test ! -f /var/lib/graphite/graphite.db', + onlyif => 'test ! -f /var/lib/graphite/storage/graphite.db', require => [ Exec['install_graphite_web'], File['/var/lib/graphite'], Package['apache2'],