Stop splunk before overwriting it, don't stop chef if splunk isn't running
This commit is contained in:
parent
b643046b5b
commit
ff24f46114
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ 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 "Stop old splunk" do
|
||||||
|
command "/opt/splunk/bin/splunk stop || true"
|
||||||
|
end
|
||||||
|
|
||||||
execute "Remove old splunk" do
|
execute "Remove old splunk" do
|
||||||
command "rm -rf /opt/splunk"
|
command "rm -rf /opt/splunk"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue