Skip to content

Commit

Permalink
enable atop service
Browse files Browse the repository at this point in the history
  • Loading branch information
phunehehe committed Dec 25, 2012
1 parent 4153971 commit 09544da
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions basics/recipes/redhat.rb
Expand Up @@ -7,14 +7,21 @@
# All rights reserved - Do Not Redistribute
#

include_recipe "yum::epel"
execute 'chkconfig --level 2345 atop on' do
action :run
only_if 'test -f /etc/init.d/atop'
end


# Default shared memory is too low to be useful
template "/etc/sysctl.conf" do
mode "0644"
source "redhat-sysctl.conf.erb"
template '/etc/sysctl.conf' do
mode '0644'
source 'redhat-sysctl.conf.erb'
end


include_recipe 'yum::epel'

node.basics.epel_packages.each do |pkg|
package pkg do
unless node.basics.package_mask.include?(pkg)
Expand Down

0 comments on commit 09544da

Please sign in to comment.