Permalink
Browse files

wait for initialization before creating bucket

  • Loading branch information...
1 parent be0f5ce commit dcaf551a13d2b8a29aed32c3ca7eceec0b571bd3 @ronniedada ronniedada committed Dec 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 cookbooks/couchbase/recipes/setup-2.0.0.rb
@@ -66,20 +66,20 @@
end
execute "starting server" do
- command "/etc/init.d/couchbase-server start && sleep 10"
+ command "/etc/init.d/couchbase-server start"
action :run
end
end
-log("/opt/couchbase/bin/couchbase-cli bucket-create" +
+log("sleep 10 && /opt/couchbase/bin/couchbase-cli bucket-create" +
" -c 127.0.0.1:8091" +
" -u #{node[:db_couchbase][:cluster][:username]}" +
" --bucket=#{node[:db_couchbase][:bucket][:name]}" +
" --bucket-type=couchbase" +
" --bucket-ramsize=#{node[:db_couchbase][:bucket][:ram]}" +
" --bucket-replica=#{node[:db_couchbase][:bucket][:replica]}")
execute "creating bucket: #{node[:db_couchbase][:bucket][:name]}" do
- command("/opt/couchbase/bin/couchbase-cli bucket-create" +
+ command("sleep 10 && /opt/couchbase/bin/couchbase-cli bucket-create" +
" -c 127.0.0.1:8091" +
" -u #{node[:db_couchbase][:cluster][:username]}" +
" -p #{node[:db_couchbase][:cluster][:password]}" +

0 comments on commit dcaf551

Please sign in to comment.