From dac3719f4f95e7055cab3a409092f8fb4db68dce Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Mon, 25 Mar 2013 15:56:25 -0500 Subject: [PATCH] Adjusting node attribute references to match existing style and conform to Foodcritic FC019 --- attributes/monit.rb | 8 ++++---- recipes/monit.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/attributes/monit.rb b/attributes/monit.rb index 6bbfa04..a6bd549 100644 --- a/attributes/monit.rb +++ b/attributes/monit.rb @@ -1,4 +1,4 @@ -default.riak.monit.process_matching = "/usr/lib/riak/erts-5.8.5/bin/beam.smp" -default.riak.monit.start_program = "/usr/sbin/riak" -default.riak.monit.http_host = "localhost" -default.riak.monit.http_port = "8098" +default['riak']['monit']['process_matching'] = "/usr/lib/riak/erts-5.8.5/bin/beam.smp" +default['riak']['monit']['start_program'] = "/usr/sbin/riak" +default['riak']['monit']['http_host'] = "localhost" +default['riak']['monit']['http_port'] = "8098" diff --git a/recipes/monit.rb b/recipes/monit.rb index 492839e..28786a1 100644 --- a/recipes/monit.rb +++ b/recipes/monit.rb @@ -4,10 +4,10 @@ monitrc "riak" do variables( - :process_matching => node[:riak][:monit][:process_matching], - :start_program => node[:riak][:monit][:start_program], - :http_host => node[:riak][:monit][:http_host], - :http_port => node[:riak][:monit][:http_port] + :process_matching => node['riak']['monit']['process_matching'], + :start_program => node['riak']['monit']['start_program'], + :http_host => node['riak']['monit']['http_host'], + :http_port => node['riak']['monit']['http_port'] ) template_source "riak-monit.conf.erb" template_cookbook "riak"