Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
/ cassandra Public archive

Install Cassandra 3.11.x on Debian 9/10, and Ubuntu 18.04/20.04 using Ansible.

License

Notifications You must be signed in to change notification settings

solairen/cassandra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This ansible script will install Java and cassandra on Ubuntu or Debian.
If more than one IP address will be provided, it will combine all cassandra's into rings.

Supported OS:

  • Ubuntu 18.04/20.04
  • Debian 9/10

Prerequisites

Configuration

Firewall

On hosts where cassandra will be installed, UFW should be enabled and port 22 should be temporary added to the rule.

Inventory.yml

In inventory.yml, set IP, user, password, ssh port or ssh_key on where cassandra should be installed.
If ssh_key is used, comment password.
If password is used, comment ssh_key.

linux:
    vars:
      ansible_ssh_user: user
      ansible_ssh_pass: password
      ansible_port: 22
      ansible_ssh_private_key_file: <path_to_key>
    children:
      cassandra:
        hosts:
          127.0.0.1:

Group_vars/all/common

In group_vars/all/common, set:

_CLUSTER_NAME: Test Cluster
_SEEDS: "{{ groups['cassandra'] | join(',') }}"
_LISTEN_ADDRESS: "{{ inventory_hostname }}"
_BROADCAST_ADDRESS: "{{ inventory_hostname }}"
_START_RPC: true
_RPC_ADDRESS: 0.0.0.0
_DATA_DIR: /var/lib/cassandra/data
_HINTS_DIR: /var/lib/cassandra/hints
_COMMITLOG_DIR: /var/lib/cassandra/commitlog
_SAVE_CACHE_DIR: /var/lib/cassandra/saved_caches
_PARTITIONER: org.apache.cassandra.dht.Murmur3Partitioner
_ENABLE_MATERIALIZED_VIEWS: false
_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
_JMX_PORT: 8090
_DMX_ADDRESS: 0.0.0.0
_DMX_PORT: 8091

How to run:

ansible-playbook -i inventory.yml install.yml --ask-become-pass -vv

About

Install Cassandra 3.11.x on Debian 9/10, and Ubuntu 18.04/20.04 using Ansible.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages