Skip to content

Commit

Permalink
Merge pull request #48 from sspans/sspans-remove-node.set
Browse files Browse the repository at this point in the history
remove node.set for newer chef versions
  • Loading branch information
snkutlu authored Jul 18, 2016
2 parents 6e08961 + 29aafef commit 584db9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 584db9d

Please sign in to comment.