diff --git a/metadata.rb b/metadata.rb index 629c59d..cd5bdd5 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs and configures Nagios NRPE client' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '1.5.3' +version '1.5.4' recipe 'default', 'Installs and configures a nrpe client' %w(build-essential yum-epel).each do |cb| diff --git a/recipes/configure.rb b/recipes/configure.rb index 9fcc8c1..0c51291 100644 --- a/recipes/configure.rb +++ b/recipes/configure.rb @@ -76,6 +76,6 @@ ruby_block 'updating of the list of checks' do block do checks = run_context.resource_collection.select { |r| r.is_a?(Chef::Resource::NrpeCheck) && r.action == [:add] }.map(&:command_name) - node.set['nrpe']['checks'] = checks + node.default['nrpe']['checks'] = checks end end