Skip to content

Commit

Permalink
Make yum-epel recipe optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Gallagher committed Feb 13, 2015
1 parent af28f20 commit e970864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
default['nrpe']['check_action'] = 'restart'
end
default['nrpe']['install_method'] = 'package'
default['nrpe']['install_yum-epel'] = true
default['nrpe']['pid_file'] = '/var/run/nrpe.pid'
default['nrpe']['packages'] = %w(nrpe nagios-plugins-disk nagios-plugins-load nagios-plugins-procs nagios-plugins-users)
if node['kernel']['machine'] == 'i686'
Expand Down
2 changes: 1 addition & 1 deletion recipes/_package_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# nrpe packages are available in EPEL on rhel / fedora platforms
# fedora 17 and later don't require epel
if platform_family?('rhel', 'fedora')
if platform_family?('rhel', 'fedora') && node['nrpe']['install_yum-epel']
unless platform?('fedora') && node['platform_version'].to_i > 16
include_recipe 'yum-epel'
end
Expand Down

0 comments on commit e970864

Please sign in to comment.