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"