useful_scripts/check_juju.sh
Arif Ali a90392cc89
Update + add scripts
* Added a simple check juju script
* fix cloud script for focal, similar to the bionic one
* initialise vault scipt
* Update get_password script to add innodb
* Added a new script for check_vip_issue_db.sh
2022-01-27 10:08:00 +00:00

18 lines
364 B
Bash
Executable File

#!/bin/bash
check_controller()
{
controller=$1
model="cpe-focal"
juju status -m ${controller}:${model} --color | grep ^Unit -A 999999 | egrep -v "started.*focal|started.*bionic|active.*idle"
}
if [[ -z "$1" ]] ; then
check_controller $(juju controllers --format json | jq .\"current-controller\" | sed s/\"//g)
else
check_controller $1
fi