Skip to content

Commit 2c42dde

Browse files
committed
ansible-scylla-node: remove default scylla_seeds
The assumption cannot be made that the hostname is DNS resolvable by all nodes in the cluster. It's more appropriate to require that the seed nodes are specified explicitly. Signed-off-by: Vincent Reniers <vincent.reniers@scylladb.com>
1 parent 9e3c990 commit 2c42dde

1 file changed

Lines changed: 8 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 }}"

0 commit comments

Comments
 (0)