Arif Ali
a90392cc89
* 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
18 lines
364 B
Bash
Executable File
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
|
|
|