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.yamlfile. For examplecassandra_installation_pathvariable indicates that where to keep manifest of docker compose file for Apache Cassandra components. -
Create
inventory/inventory.yamlfile from theinventory/inventory.yaml.samplefile and place theIPanduserof 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
defaultsdirectory of each role. For example, you can change the port, by changing thecassandra_portvalue located inroles/cassandra/defaults/main.yamlfile. -
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 -kKansible-playbook -i inventory/inventory.yaml start.yaml -v -b -kKansible-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
