- Java jre 8
- Run python-package.yml if there is no python-apt and python minimal packages on instancces.
- Creating Snapshots
The Playbook will install cassandra on specified hosts from hsots.yml. After the completing the installation it will add the configuration from j2 template. Once all the configurations are completed it will restart the cassandra and cluster will be up and running.
- Add the ip in hosts.yml for the number of nodes on which to install cassandra
- In roles/cassandra/vars/main.yml Add the seeds ip, these seeds will be added in cassandra's installation file ie: /etc/cassandra/cassandra.yaml
- seeds_var : someIPAddress
- seeds_var2 : someIPAdress
- NOTE: To add more seeds increase the variable on this path for eg. seeds_var seeds_var2 seeds_var3 ... seeds_varN and also add these variables in roles/cassandra/templates/cassandra.yaml.j2 file at line No 424 {{ seeds_var }},{{ seeds_var2 }},{{ seeds_var3 }},{{ seeds_varN }}
- At last simply run the play book on desired node.