SkylineCommunications / AnsibleCassandraCluster

Ansible Playbook for Cassandra Cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Playbook: Install Cassandra Cluster (Debian)

With this playbook you can install and configure your first Cassandra cluster. The supported operating system is all the system that are debian based (as we suggest the use of Ubuntu).

The playbook should be executed with elevated rights as some super user actions are needed for the installation.

With the playbook the latest version of Cassandra will be installed. However the configuration is tested for systems that install Cassandra 4.3. As futher version can have added values in the cassandra.yaml file. We'll keep an eye on this and keep this updated.

Before running the playbook some variables need to be set in the variables.yml file.

Before running the playbook

Copy files

Copy all the files to the following location: /home/ansible/install_cassandra

If the location doesn't exist, you can easily create it.

Change the needed variables

In the variable folder, you'll find the variables.yaml file. Here you will need to change the following variables:

  • clustername: set a custom clustername if wanted
  • seeds : add all the ip addresses that you want in the cassandra cluster (these should be the same as in the ansible hosts file)
  • dc: dc location
  • rack: location in rack

Cassandra access

Standard the Cassandra root user will be configured with default password. It's advised to change this! You can do this in the createRole.cql file in the cql folder. You can change the password there.

Ansible hosts file

The playbook is configured to run all the hosts from [cassandra]. You can change this in the ansible hosts file, or change the hosts in the playbook.

Running the playbook

Once everything is configured you can run the playbook with:

ansible-playbook install_Cassandra.yaml --ask-become-pass

Improvement list

  • dc and rack variable can be set for each node

License

Code and documentation in this project are released under the MIT License.

About

Ansible Playbook for Cassandra Cluster

License:MIT License


Languages

Language:Jinja 100.0%