From b2ba070167b964295db5addddefbfcab4d642aed Mon Sep 17 00:00:00 2001 From: Corey Appleby Date: Tue, 8 May 2018 22:35:02 -0400 Subject: [PATCH] Delete localConfig.js This file gets loaded after config.js and has all the default values, which makes it impossible to override node['statsd']['graphite_host']. I ran into this on Ubuntu 14.04, but if it's happening elsewhere you might want to put the deletion in the default recipe. --- recipes/debian.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes/debian.rb b/recipes/debian.rb index ed8c44f..611cf13 100644 --- a/recipes/debian.rb +++ b/recipes/debian.rb @@ -47,3 +47,9 @@ source "#{node['statsd']['tmp_dir']}/statsd_#{node['statsd']['package_version']}_all.deb" options '--force-confold' end + +# We do our config in /etc/statsd/config.js, this isn't needed. +file '/etc/statsd/localConfig.js' do + action :delete + notifies :restart, "service[statsd]" +end