useful_scripts/grab_vips.sh

13 lines
298 B
Bash
Raw Normal View History

2021-10-12 19:24:31 +00:00
#!/bin/bash
applications=$(juju status --format json | jq ".applications | to_entries[] | .key" | sed s/\"//g)
for app in ${applications}
do
vip=$(juju config $app --format json | jq ".settings.vip.value" | sed s/\"//g)
if [[ $vip != "null" ]] ; then
echo "${app}: ${vip}"
fi
done