- 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 update
apt install python python-pip
- Install python requirements
pip install -r requirements.txt
- edit
fabfile.py
and modify as required- add or remove ip addresses from
env.hosts
as required - modify ip addresses for specific hosts (such as pihole and home-assistant)
- add or remove ip addresses from
- Running
fab doAll
will iterate over every host and update in this order:- kill any broken apt or dpkg instances and fix conflicts
- run
apt-get update
on 5 hosts at a time - run
apt-get upgrade
on 2 hosts at a time - run
apt-get clean
andapt-get autoclean
on 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