Make sure you have installed python3, pip and ansible on your host machine.
In order to install Apache Cassandra cluster on your nodes, it is required to do the following steps.
-
Set global environment variables which are located at
inventory/group_vars/all.yaml
file. For examplecassandra_installation_path
variable indicates that where to keep manifest of docker compose file for Apache Cassandra components. -
Create
inventory/inventory.yaml
file from theinventory/inventory.yaml.sample
file and place theIP
anduser
of the nodes there. You can easily create a new name and place it in inventory.yaml file. -
Then go to the roles and set the values of each variable on
defaults
directory of each role. For example, you can change the port, by changing thecassandra_port
value located inroles/cassandra/defaults/main.yaml
file. -
Execute the following command:
ansible-playbook -i <path-to-inventory-file> cluster.yaml -v -b -kK
# e.g.
ansible-playbook -i inventory/inventory.yaml cluster.yaml -v -b -kK
ansible-playbook -i inventory/inventory.yaml start.yaml -v -b -kK
ansible-playbook -i inventory/inventory.yaml remove.yaml -v -b -kK
- Setup new cluster
- Add password vault
- Setup monitoring with Grafana and Prometheus
- Persist data of Grafana