diff --git a/chef/cookbooks/centos/recipes/bootstrap.rb b/chef/cookbooks/centos/recipes/bootstrap.rb index 23f5eb2f2..9c4914279 100644 --- a/chef/cookbooks/centos/recipes/bootstrap.rb +++ b/chef/cookbooks/centos/recipes/bootstrap.rb @@ -10,6 +10,9 @@ end execute "ssl lib" do command "yum install -y openssl-devel" end +execute "htop" do + command "yum install -y htop psmisc screen" +end def harden_ruby(ruby_string) Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file| diff --git a/chef/cookbooks/common/recipes/splunk.rb b/chef/cookbooks/common/recipes/splunk.rb index 8688de444..a962aaf78 100644 --- a/chef/cookbooks/common/recipes/splunk.rb +++ b/chef/cookbooks/common/recipes/splunk.rb @@ -6,8 +6,12 @@ execute "Untar splunk" do command "cd /tmp/install && tar -xvf splunk-4.1.5-85165-Linux-x86_64.tgz" end +execute "Remove old splunk" do + command "rm -rf /opt/splunk" +end + execute "Install splunk" do - command "mv -f /tmp/install/splunk /opt/splunk" + command "mv /tmp/install/splunk /opt/splunk" end execute "Start splunk" do