useful_scripts/grab_vips.sh

13 lines
273 B
Bash
Raw Normal View History

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