From 5599e00604a8b916fa7b3939879bf60311b70833 Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Sat, 25 Jul 2015 09:31:00 +1000 Subject: [PATCH] Lazily evaluate config content. Fixes #183. --- recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index 72416d6..242f5b1 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -70,7 +70,7 @@ end file "#{node['riak']['platform_etc_dir']}/riak.conf" do - content Cuttlefish.compile('', node['riak']['config']).join("\n") + content lazy { Cuttlefish.compile('', node['riak']['config']).join("\n") } owner 'root' mode 0644 notifies :restart, "service[#{riak_service}]"