Port to fabric2; add example config
This commit is contained in:
44
multiball.cfg.example
Normal file
44
multiball.cfg.example
Normal file
@ -0,0 +1,44 @@
|
||||
[config]
|
||||
history=multiball.history
|
||||
sshconfigs=~/.ssh/config
|
||||
hostlists=
|
||||
|
||||
[startup]
|
||||
|
||||
[cmd.upgrade]
|
||||
/unsafe
|
||||
/targets
|
||||
/confirm Targeting these, ok?
|
||||
/env DEBIAN_FRONTEND=noninteractive
|
||||
sudo -E apt -y upgrade
|
||||
/confirm Do they need to be rebooted?
|
||||
sudo reboot
|
||||
|
||||
|
||||
[cmd.install-pkg]
|
||||
/arguments
|
||||
/unsafe
|
||||
/targets
|
||||
/confirm Installing `{@}` on these, ok?
|
||||
/env DEBIAN_FRONTEND=noninteractive
|
||||
sudo -E apt -y install {@}
|
||||
/confirm Do they need to be rebooted?
|
||||
sudo reboot
|
||||
|
||||
[cmd.upgrade-pkg]
|
||||
/arguments
|
||||
/unsafe
|
||||
/targets
|
||||
/confirm Installing `{@}` on these, ok?
|
||||
/env DEBIAN_FRONTEND=noninteractive
|
||||
sudo -E apt -y install --only-upgrade {@}
|
||||
|
||||
[cmd.last-updated]
|
||||
/safe sudo zgrep -B1 'apt-get upgrade' /var/log/apt/* | grep 'Start' | cut -d'z' -f2 | sort | tail -n1 | cut -d' ' -f2 || true
|
||||
|
||||
[cmd.upgradable]
|
||||
/safe apt list --upgradable 2>&1 | grep upgradable | grep -v WARNING || true
|
||||
|
||||
[cmd.ping]
|
||||
/safe echo ping
|
||||
|
Reference in New Issue
Block a user