2021-10-12 19:24:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-03-14 11:32:10 +00:00
|
|
|
applications=$(juju status --format json | jq -r ".applications | to_entries[].key")
|
2021-10-12 19:24:31 +00:00
|
|
|
|
|
|
|
for app in ${applications}
|
|
|
|
do
|
2022-03-14 11:32:10 +00:00
|
|
|
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
|
|
|
|
|