Skip to content

DrSterling/couchbase-ansible-playbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Couchbase Ansible Playbook

This project contains sample playbooks to manage Couchbase cluster.

Note: the current scripts are only working on Ubuntu/Debian for now

Install Couchbase Cluster

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 Couchbase Cluster

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

About

Couchbase Ansible Playbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published