consul/gen_hosts.sh include OS info in table
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a0554250e6
commit
b0d91bf3d5
|
@ -6,5 +6,6 @@ readarray -t DCS < <(curl -s "${CONSUL_URL}/datacenters" | jq -r '.[]')
|
|||
|
||||
for DC in "${DCS[@]}"; do
|
||||
echo "# DC: ${DC}"
|
||||
curl -s "${CONSUL_URL}/nodes?dc=${DC}" | jq -r '.[] | [.Address, .Node] | @tsv'
|
||||
curl -s "${CONSUL_URL}/nodes?dc=${DC}" \
|
||||
| jq -r '.[] | [.Address, .Node, .Meta.os] | @tsv'
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue