From 1faf1986ae24b47b6c3c4ff57cb69f0b2da0ccc8 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 17 Nov 2010 11:42:53 -0800 Subject: [PATCH] Start splunk --- chef/cookbooks/common/recipes/splunk.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chef/cookbooks/common/recipes/splunk.rb b/chef/cookbooks/common/recipes/splunk.rb index 5833cb223..effa83267 100644 --- a/chef/cookbooks/common/recipes/splunk.rb +++ b/chef/cookbooks/common/recipes/splunk.rb @@ -10,14 +10,15 @@ execute "Install splunk" do command "mv /tmp/install/splunk /opt/splunk" end +execute "Start splunk" do + command "cd /opt/splunk/bin && ./splunk start --accept-license" +end + execute "Put splunk into forwarding mode" do - command "cd /opt/splunk/bin && ./splunk enable app SplunkLightForwarder --accept-license -auth admin:changeme" + command "cd /opt/splunk/bin && ./splunk enable app SplunkLightForwarder -auth admin:changeme" end execute "Add forwarding server" do command "cd /opt/splunk/bin && ./splunk add forward-server splunk.joindiaspora.com:9997 -auth admin:changeme" end -execute "Start splunk" do - command "cd /opt/splunk/bin && ./splunk start" -end