Permalink
Browse files

add 10 seconds sleep after installation

Change-Id: Ia86080c2bf2b916a1b1afdc3e348a09b73701360
  • Loading branch information...
1 parent a2f702b commit f4dce11eb892d34ea89188a0edbc2dbd2cb30415 @farshidce farshidce committed Jun 25, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 cookbooks/couchbase/recipes/default.rb
@@ -27,6 +27,15 @@
provider Chef::Provider::Package::Rpm
end
end
+execute "sleep for 10 seconds"
+ command "sleep 10"
+ action :run
+end
+bash "sleep 10 seconds" do
+ code <<-EOF
+ sleep 10
+ EOF
+end
execute "initialize couchbase cluster with username:#{node[:db_couchbase][:cluster][:username]}" do
command "/opt/couchbase/bin/couchbase-cli cluster-init -c localhost:8091 --cluster-init-username=#{node[:db_couchbase][:cluster][:username]} --cluster-init-password=#{node[:db_couchbase][:cluster][:password]}"
action :run

0 comments on commit f4dce11

Please sign in to comment.