From b15d7018c8b9f090508fd5e13af41e7980ff44b9 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Sat, 20 Nov 2010 18:24:44 -0800 Subject: [PATCH 1/2] making a directory to cd into, for splunk --- chef/cookbooks/common/recipes/splunk.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/chef/cookbooks/common/recipes/splunk.rb b/chef/cookbooks/common/recipes/splunk.rb index 097d5e0bd..6653dc709 100644 --- a/chef/cookbooks/common/recipes/splunk.rb +++ b/chef/cookbooks/common/recipes/splunk.rb @@ -1,5 +1,6 @@ unless system "splunk status" execute "Download splunk" do + command "mkdir -p /tmp/install" command "cd /tmp/install && wget 'http://www.splunk.com/index.php/download_track?file=4.1.5/linux/splunk-4.1.5-85165-Linux-x86_64.tgz&ac=&wget=true&name=wget&typed=releases'" end From 3e1f6d7eaa41ec198a7b568918e83ab7ac38deed Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Sat, 20 Nov 2010 18:40:20 -0800 Subject: [PATCH 2/2] moving it making dir into own step --- chef/cookbooks/common/recipes/splunk.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chef/cookbooks/common/recipes/splunk.rb b/chef/cookbooks/common/recipes/splunk.rb index 6653dc709..807af9536 100644 --- a/chef/cookbooks/common/recipes/splunk.rb +++ b/chef/cookbooks/common/recipes/splunk.rb @@ -1,6 +1,9 @@ unless system "splunk status" - execute "Download splunk" do + execute "Make Temp Dir" do command "mkdir -p /tmp/install" + end + + execute "Download splunk" do command "cd /tmp/install && wget 'http://www.splunk.com/index.php/download_track?file=4.1.5/linux/splunk-4.1.5-85165-Linux-x86_64.tgz&ac=&wget=true&name=wget&typed=releases'" end