This project contains sample playbooks to manage Couchbase cluster.
Note: the current scripts are only working on Ubuntu/Debian for now
Configure the list of Hosts in host file.
This file contains 2 groups of server:
[couchbase-main] : select one of your server, this one will be used to initialize and configure the cluster. [couchbase-nodes] : all other nodes that will be added to the cluster.
Enter the Administrator information and server configuration (RAM Quotas, Bucket name, Replicas) in the ./group_vars/all file
Run the Ansible command
ansible-playbook -i ./hosts ./couchbase.yml
This script will do the following:
- Download the Couchbase package if not already present on all nodes
- Install the dependencies on all nodes if needed
- Install Couchbase on all nodes
- Create a new cluster on the "main" node
- Add all other nodes to the cluster
- Create a new bucket
Uninstall the Couchbase server and delete all files (Warning you will lose your data)
Run the Ansible command
ansible-playbook -i ./hosts ./couchbase-uninstall.yml