From 4188c51545c02a2b57f5eb96a7c92e02a100c31e Mon Sep 17 00:00:00 2001 From: Ray Rodriguez Date: Thu, 12 Mar 2015 22:40:11 -0400 Subject: [PATCH] Fixed issue with init template and chef 11.x where template path was being appended twice to the platform template path. This fix should work for chef 11.x and 12.x. --- .kitchen.yml | 2 -- recipes/source.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.kitchen.yml b/.kitchen.yml index 2b9f168..03476e2 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -23,8 +23,6 @@ suites: attributes: prometheus: init_style: 'init' - flags: - storage.remote.timeout: 45s - name: bluepill run_list: diff --git a/recipes/source.rb b/recipes/source.rb index 21327a2..f1f4dad 100644 --- a/recipes/source.rb +++ b/recipes/source.rb @@ -104,7 +104,7 @@ end else template '/etc/init.d/prometheus' do - source "#{node['platform']}/prometheus.erb" + source 'prometheus.erb' owner 'root' group node['root_group'] mode '0755'