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

ansible-scylla-node: Add a way to set additional scylla command line … #400

Merged
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
8 changes: 8 additions & 0 deletions ansible-scylla-node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ always_replace_io_properties: False

io_conf: 'SEASTAR_IO="--io-properties-file /etc/scylla.d/io_properties.yaml"'

# This parameter allows overriding a default SCYLLA_ARGS value in /etc/default/scylla-server file
# When defined and not empty SCYLLA_ARGS is going to be set the corresponding value.
#
# The provided value will be set in double quotes by the Role:
# SCYLLA_ARGS="{{ scylla_args_value }}"
#
# scylla_args_value: "--log-to-syslog 1 --log-to-stdout 0 --default-log-level info --network-stack posix"

# Seeds node list
scylla_seeds:
- "{{ groups['scylla'][0] }}"
Expand Down
9 changes: 9 additions & 0 deletions ansible-scylla-node/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@
become: true
when: _io_properties_file.stat.exists|bool == false or always_replace_io_properties|bool

- name: Override SCYLLA_ARGS if requested
lineinfile:
path: /etc/default/scylla-server
regexp: '^SCYLLA_ARGS='
line: 'SCYLLA_ARGS="{{ scylla_args_value }}"'
create: yes
become: true
when: scylla_args_value is defined and scylla_args_value|length > 0

- name: configure NTP
shell: |
scylla_ntp_setup
Expand Down
Loading