Ansible Bootstrap for Cassandra Cluster
This repository provides the ansible scripts to set up a Datastax Cassandra cluster on CentOS servers. Included: Datastax-Opscenter monitoring Not Included: SSL, security, encryption
The destination servers have to be setted in inventory file ./inventory.ini
- CentOS 7.x
- Internet gateway
- ansible >= 1.9
- vagrant >= 1.8 (for demo purpose)
This repository provides scripts to instanciate a 3-nodes virtualized cluster which runs on 192.168.33.0/24 network.
- Instanciate the VMs:
vagrant up
- Provision the cassandra cluster:
ansible-playbook -i inventory.ini init_cassandra_cluster.yml
- Access to cassandra nodes:
ssh [email protected][1-3]
- Destroy the cluster:
vangrant destroy
Access Opscenter via :
- http://192.168.33.31:8888
- admin:admin
To run the cluster initialization scripts on your own machines you have to set up a custom inventory file as follow :
[all:vars]
rack=rack1
[cassandra]
hostname-1 ansible_ssh_host=<IP> ansible_connection=ssh datacenter=<DCName> interface_name=<Network_interface>
hostname-2 ...