This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.6.8' into main
- Loading branch information
Showing
21 changed files
with
391 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
.idea/ | ||
.python-version | ||
*.pyc | ||
*.rake_tasks~ | ||
*.swp | ||
.cache/ | ||
.idea/ | ||
.python-version | ||
Gemfile.lock | ||
pytestdebug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
|
||
- name: Check OS is supported | ||
assert: | ||
that: | ||
- ansible_os_family | default('') is in ['Debian', "RedHat"] | ||
fail_msg: "unsupported OS ({{ ansible_os_family | d(None) }}) or facts not gathered" | ||
|
||
- name: Check use of deprecated variables | ||
debug: | ||
msg: "{{ variable.name }} is deprecated; use {{ variable.replacement }} instead" | ||
when: lookup('vars', variable.name, default='') | length | ||
loop: "{{ deprecated_variables }}" | ||
loop_control: | ||
loop_var: variable | ||
vars: | ||
deprecated_variables: | ||
- name: cassandra_dc | ||
replacement: cassandra_regex_replacements | ||
- name: cassandra_path | ||
replacement: cassandra_directories | ||
- name: cassandra_rack | ||
replacement: cassandra_regex_replacements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
|
||
- name: Create Custom Directory | ||
file: | ||
group: "{{ directory.0.spec.group | default('cassandra') }}" | ||
mode: "{{ directory.0.spec.mode | default(0700) }}" | ||
owner: "{{ directory.0.spec.owner | default('cassandra') }}" | ||
path: "{{ directory.1 }}" | ||
state: directory | ||
loop: "{{ cassandra_directories | ||
| dict2items(key_name='set', value_name='spec') | ||
| subelements('spec.paths') }}" | ||
loop_control: | ||
loop_var: directory | ||
when: | ||
- not ansible_check_mode | ||
- cassandra_directories is defined | ||
|
||
- name: Apply Cassandra Configuration | ||
template: | ||
src: "{{ cassandra_configuration_templ }}" | ||
dest: "{{ cassandra_configuration_file }}" | ||
owner: root | ||
group: root | ||
mode: 0o644 | ||
notify: | ||
- cassandra_restart_service | ||
|
||
- name: Apply Regular Expression Updates to the Configuration | ||
lineinfile: | ||
line: "{{ item.line }}" | ||
path: "{{ cassandra_configuration_directory }}/{{ item.path }}" | ||
regexp: "{{ item.regexp }}" | ||
loop: "{{ cassandra_regex_replacements }}" | ||
when: | ||
- not ansible_check_mode | ||
notify: | ||
- cassandra_restart_service | ||
|
||
- name: Set the DC for Cassandra | ||
lineinfile: | ||
dest: "{{ cassandra_configuration_file | dirname }}/cassandra-rackdc.properties" | ||
regexp: '^dc=' | ||
line: "dc={{ cassandra_dc }}" | ||
when: | ||
- cassandra_dc is defined | ||
- not ansible_check_mode | ||
notify: | ||
- cassandra_restart_service | ||
|
||
- name: Set the Rack for Cassandra | ||
lineinfile: | ||
dest: "{{ cassandra_configuration_file | dirname }}/cassandra-rackdc.properties" | ||
regexp: '^rack=' | ||
line: "rack={{ cassandra_rack }}" | ||
when: | ||
- cassandra_rack is defined | ||
- not ansible_check_mode | ||
notify: | ||
- cassandra_restart_service |
Oops, something went wrong.