consul/gen_hosts.sh include OS info in table

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-10-20 12:08:59 +02:00
parent a0554250e6
commit b0d91bf3d5
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 1 deletions

View File

@ -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