How to automate this initial setup ?

Hi,

I'm want to automate the creation of Couchbase nodes; and I'd like to know how to bypass the initial setup phase in the http admin? (REST request ? command line args ?)
Thx iin advance.

2 Answers

« Back to question.

Hello,

You can use the command line that is documented here:
http://docs.couchbase.com/couchbase-manual-2.2/#command-line-interface-f...

You can then integrate this in any administration tool, I have for example written some scripts for Ansible.
- https://github.com/tgrall/couchbase-ansible-playbook
- and blog post/video : http://blog.couchbase.com/create-couchbase-cluster-with-ansible

Regards
Tug
@tgrall

« Back to question.

http://docs.couchbase.com/couchbase-manual-2.0/#command-line-interface-f...

shell> couchbase-cli cluster-init -c 192.168.0.1:8091 \
       —cluster-init-username=Administrator \
       —cluster-init-password=password \
       —cluster-init-port=8080 \
       —cluster-init-ramsize=8192