useful_scripts/check_mongo_status_py.sh
Arif Ali 2476319877
Update scripts
* Move the OVN resync stuff to functions.sh, so that it can be used elsewhere
* Add check mongo python script
2024-11-07 12:09:41 +00:00

13 lines
270 B
Bash
Executable File

#!/bin/bash
machine=${1:-0}
model=${2:-controller}
read -d '' -r cmds <<'EOF'
sudo apt -y install python3-pymongo > /dev/null 2>&1
sudo python3 /home/ubuntu/check_mongo.py
EOF
juju scp -m ${model} check_mongo.py ${machine}:.
juju ssh -m ${model} ${machine} "${cmds}"