Remove old splunk
This commit is contained in:
parent
0012c010af
commit
f29c84fb48
2 changed files with 8 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ end
|
||||||
execute "ssl lib" do
|
execute "ssl lib" do
|
||||||
command "yum install -y openssl-devel"
|
command "yum install -y openssl-devel"
|
||||||
end
|
end
|
||||||
|
execute "htop" do
|
||||||
|
command "yum install -y htop psmisc screen"
|
||||||
|
end
|
||||||
|
|
||||||
def harden_ruby(ruby_string)
|
def harden_ruby(ruby_string)
|
||||||
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,12 @@ execute "Untar splunk" do
|
||||||
command "cd /tmp/install && tar -xvf splunk-4.1.5-85165-Linux-x86_64.tgz"
|
command "cd /tmp/install && tar -xvf splunk-4.1.5-85165-Linux-x86_64.tgz"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
execute "Remove old splunk" do
|
||||||
|
command "rm -rf /opt/splunk"
|
||||||
|
end
|
||||||
|
|
||||||
execute "Install splunk" do
|
execute "Install splunk" do
|
||||||
command "mv -f /tmp/install/splunk /opt/splunk"
|
command "mv /tmp/install/splunk /opt/splunk"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "Start splunk" do
|
execute "Start splunk" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue