Arif Ali
2476319877
* Move the OVN resync stuff to functions.sh, so that it can be used elsewhere * Add check mongo python script
13 lines
270 B
Bash
Executable File
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}"
|