joeljacobson / vagrant-ansible-cassandra

Easily provision a 3 node DataStax Enterprise Cassandra cluster with OpsCenter using Ansible and Vagrant.
http://joeljacobson.github.io/vagrant-ansible-cassandra
26 stars 13 forks source link

Introduction

Easily provision 3 DSE Cassandra nodes with Opscenter across 4 VMs using Ansible with Vagrant & Virtualbox.

Prerequisites

Make sure all of these are up-to-date.

Provisioning

Clone the project: git clone https://github.com/joeljacobson/vagrant-ansible-cassandra.git

In the project directory enter: vagrant up

Your cluster will be ready shortly depending on your internet connection. The initial boot takes some time as Ansible has to download, install and configure DataStax Enterprise across each VM. Subsequent reboots are fast.

DSE and Opscenter will be automatically configured and started once installed. They will also be automatically started each time the VMs are booted.

Nodes will be running on: 192.168.56.11, 192.168.56.12, 192.168.56.13

Opscenter will be running on: 192.168.56.14:8888

Select manage existing cluster and install agents automatically, then enter vagrant for both the username and password.

SSH into a node with: vagrant ssh <nodename>

CQLSH example cqlsh 192.168.56.11

Shutdown the VMs: vagrant halt

Resume VMs: vagrant up

Destroy the VMs (requires re-provisioning): vagrant destroy