useful_scripts/grab_vips.sh
2021-10-12 20:24:31 +01:00

13 lines
298 B
Bash
Executable File

#!/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