Skip to content

Commit

Permalink
add support for prometheus_address
Browse files Browse the repository at this point in the history
fix condition for setting default broadcast_rpc_address
when rpc address is 0.0.0.0
  • Loading branch information
tarzanek committed Nov 10, 2022
1 parent 5721ba6 commit cc2c241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible-scylla-node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ scylla_seeds:
scylla_listen_address: "{{ vars['ansible_'~scylla_nic].ipv4.address }}"
scylla_rpc_address: "{{ vars['ansible_'~scylla_nic].ipv4.address }}"
scylla_broadcast_address: "{{ vars['ansible_'~scylla_nic].ipv4.address }}"
scylla_broadcast_rpc_address: "{{ scylla_rpc_address }}"
scylla_broadcast_rpc_address: "{{ scylla_listen_address if scylla_rpc_address == '0.0.0.0' else scylla_rpc_address }}"
scylla_prometheus_address: "{{ scylla_listen_address }}"

scylla_api_address: '127.0.0.1'
scylla_api_port: '10000'
Expand Down
1 change: 1 addition & 0 deletions ansible-scylla-node/templates/scylla.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ endpoint_snitch: {{ scylla_snitch }}
rpc_address: {{ scylla_rpc_address }}
broadcast_address: {{ scylla_broadcast_address }}
broadcast_rpc_address: {{ scylla_broadcast_rpc_address }}
prometheus_address: {{ scylla_prometheus_address }}
rpc_port: 9160
api_port: {{ scylla_api_port }}
api_address: {{ scylla_api_address }}
Expand Down

0 comments on commit cc2c241

Please sign in to comment.