- Hosts running Debian-based platforms (Debian, Ubuntu)
- SSH accessible on port 22
- Python package
fabric- which will be installed below
- Get python and pip installed
apt updateapt install python python-pip
- Install python requirements
pip install -r requirements.txt
- edit
fabfile.pyand modify as required- add or remove ip addresses from
env.hostsas required - modify ip addresses for specific hosts (such as pihole and home-assistant)
- add or remove ip addresses from
- Running
fab doAllwill iterate over every host and update in this order:- kill any broken apt or dpkg instances and fix conflicts
- run
apt-get updateon 5 hosts at a time - run
apt-get upgradeon 2 hosts at a time - run
apt-get cleanandapt-get autocleanon 3 hosts at a time - run the singular updates for pihole and home-assistant
- You can also run
fab [fix|update|upgrade|clean|singleUpdates]to run any one of those functions manually