Skip to content

SkylineCommunications/AnsibleCassandraCluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages