Browse files

fix stuff for redhat

  • Loading branch information...
1 parent 8e4dee5 commit 7caa2fd73fdb78c23ff325c2eeb9ba23c1d44b76 @phunehehe committed Oct 29, 2012
Showing with 8 additions and 10 deletions.
  1. +7 −0 munin/attributes/default.rb
  2. +1 −1 munin/recipes/default.rb
  3. +0 −9 nagios/recipes/centos.rb
View
7 munin/attributes/default.rb
@@ -0,0 +1,7 @@
+case node[:platform]
+when 'centos', 'redhat', 'fedora', 'amazon'
+ default[:munin][:packages] = %w{ munin-node }
+when 'debian', 'ubuntu'
+ default[:munin][:packages] = %w{ munin-node munin-plugins-extra}
+end
+
View
2 munin/recipes/default.rb
@@ -7,7 +7,7 @@
# All rights reserved - Do Not Redistribute
#
-%w{ munin-node munin-plugins-extra}.each do |pkg|
+node[:munin][:packages].each do |pkg|
package pkg do
action :install
end
View
9 nagios/recipes/centos.rb
@@ -9,17 +9,8 @@
include_recipe "yum::epel"
-
-yum_repo :epel do
- action :enable
-end
-
%w{nagios-nrpe nagios-plugins-all}.each do |pkg|
package pkg do
action :install
end
end
-
-yum_repo :epel do
- action :disable
-end

0 comments on commit 7caa2fd

Please sign in to comment.