Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wait for initialization before creating bucket

  • Loading branch information...
commit dcaf551a13d2b8a29aed32c3ca7eceec0b571bd3 1 parent be0f5ce
@ronniedada ronniedada authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cookbooks/couchbase/recipes/setup-2.0.0.rb
View
6 cookbooks/couchbase/recipes/setup-2.0.0.rb
@@ -66,12 +66,12 @@
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]}" +
@@ -79,7 +79,7 @@
" --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]}" +
Please sign in to comment.
Something went wrong with that request. Please try again.