Script für Pools starten/stoppen hinzugefügt (#233)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#233 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
parent
e2707856d8
commit
211d42f231
1 changed files with 2 additions and 0 deletions
2
start_pools.sh
Normal file
2
start_pools.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
ssh mg@pve2.grote.lan "sudo pvesh get /pools/$1 --output-format yaml | grep -E lxc/[0-9]{3} | sed -r 's/[[:blank:]a-zA-Z\/\:]+//g' | sudo xargs -i --verbose pct $2 {} && sudo pvesh get /pools/$1 --output-format yaml | grep -E qemu/[0-9]{3} | sed -r 's/[[:blank:]a-zA-Z\/\:]+//g' | sudo xargs -i --verbose qm $2 {}"
|
Loading…
Reference in a new issue