Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed cassandra version #239

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
cassandra_version: 3.11.8
Copy link
Contributor Author

@tei-k tei-k Nov 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current latest stable version is 3.11.9. (released on 2020-11-04)
https://cassandra.apache.org/download/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Need to consider whether to up to 3.11.9. (Maybe It's ok)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use 3.11.9!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆‍♀️ Fixed in #241

cassandra_rpm_url: http://archive.apache.org/dist/cassandra/redhat/311x/cassandra-{{ cassandra_version }}-1.noarch.rpm
tuned_profile: virtual-guest
# Only Cassandra disks are tuned and OS disks are not tuned.
# In AWS, sda and xvda are used depending on virtualization types.
Expand All @@ -11,4 +13,4 @@ CASSANDRA_STATE: stopped
cassandra_dc_id: dc1
cassandra_rack_id: rack1
endpoint_snitch: GossipingPropertyFileSnitch
vm_max_map_count: 1048575
vm_max_map_count: "1048575"

This file was deleted.

24 changes: 1 addition & 23 deletions provision/ansible/playbooks/roles/cassandra/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,6 @@
daemon_reload: yes
state: started

- name: Add Cassandra Repo Debian
lineinfile:
line: "deb https://downloads.apache.org/cassandra/debian 311x main"
path: /etc/apt/sources.list.d/cassandra.sources.list
create: yes
when: ansible_facts['os_family'] == "Debian"

- name: Add Keys
shell: curl https://downloads.apache.org/cassandra/KEYS | apt-key add -
when: ansible_facts['os_family'] == "Debian"

- name: Apt Update
shell: apt update
when: ansible_facts['os_family'] == "Debian"

- name: Add Cassandra Repo
copy:
src: cassandra.repo
dest: /etc/yum.repos.d/cassandra.repo
mode: 0644
when: ansible_facts['os_family'] == "RedHat"

- name: Install jemalloc
package:
name: jemalloc
Expand All @@ -105,7 +83,7 @@

- name: Install Cassandra
package:
name: cassandra
name: "{{ cassandra_rpm_url }}"
state: present
register: install_cassandra_result
until: install_cassandra_result is succeeded
Expand Down