Skip to content

Commit 12afb63

Browse files
Merge pull request #440 from vreniers/uncomment_seeds
ansible-scylla-node: remove default scylla_seeds
2 parents 9e3c990 + 38b66d0 commit 12afb63

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

ansible-scylla-node/defaults/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,14 @@ io_conf: 'SEASTAR_IO="--io-properties-file /etc/scylla.d/io_properties.yaml"'
295295
#
296296
# scylla_args_value: "--log-to-syslog 1 --log-to-stdout 0 --default-log-level info --network-stack posix"
297297

298-
# Seeds node list
299-
scylla_seeds:
300-
- "{{ groups['scylla'][0] }}"
298+
# Seeds node list (mandatory parameter)
299+
# A seed should be either a DNS resolvable address (e.g. hostname) that is resolvable by all nodes in the cluster,
300+
# or an IP address that is accessible by all nodes in the cluster.
301+
# If the hostname is not resolvable by all nodes, then such an IP address can be set, for example, explicitly or via ansible_host.
302+
# Do not use the below default example if ansible_host is not specified and the hostname is not resolvable by all nodes.
303+
#
304+
#scylla_seeds:
305+
# - "{{ hostvars[groups['scylla'][0]].ansible_host if 'ansible_host' in hostvars[groups['scylla'][0]] else groups['scylla'][0] }}"
301306

302307
scylla_listen_address: "{{ vars['ansible_'~scylla_nic].ipv4.address }}"
303308
scylla_rpc_address: "{{ vars['ansible_'~scylla_nic].ipv4.address }}"

ansible-scylla-node/tasks/common.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
---
2+
3+
# Sanity check: scylla_seeds has no default and is mandatory since there is no
4+
# hostname/IP that can be safely assumed reachable by all nodes in the cluster.
5+
- name: "Sanity check: scylla_seeds must be explicitly defined"
6+
fail:
7+
msg: >-
8+
scylla_seeds is not defined or empty. Set it explicitly, e.g. to a DNS resolvable
9+
hostname reachable by all nodes, or an IP address (possibly via ansible_host).
10+
See defaults/main.yml for an example.
11+
when: scylla_seeds is not defined or scylla_seeds | length == 0
12+
213
- name: General, NIC and CPU settings related tweaking
314
block:
415
- name: configure Scylla

0 commit comments

Comments
 (0)