Aufsetzen + Wartung Der Knoten

Die Aufsetzung und Wartung der Knoten soll weitestgehend automatisiert werden. Was wird dazu nötig:

  • Install-Script
  • Unattended Updates
  • Kontrolle (rpimonitor oder RPi-Reporter-MQTT2HA-Daemon)

Install Script

Setup network configuration, name, hostname

Setup SSH

Setup Unattended Updates

See https://www.elektronik-kompendium.de/sites/raspberry-pi/2002101.htm See https://www.zealfortechnology.com/2018/08/configure-unattended-upgrades-on-raspberry-pi.html

apt install unattended-upgrades

echo '
Unattended-Upgrade::Origins-Pattern {
        "o=${distro_id},n=${distro_codename}";
        "o=${distro_id},n=${distro_codename}-updates";
        "o=${distro_id},n=${distro_codename}-proposed-updates";
        "o=${distro_id},n=${distro_codename},l=Debian-Security";

};

Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
' > /etc/apt/apt.conf.d/50unattended-upgrades

dpkg-reconfigure -plow unattended-upgrades

How could rpi-updates be automated???

Setup Kontroll-Daemon

See https://thesmarthomejourney.com/2021/11/15/monitoring-raspberry-pi-with-ha/ See https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon

Kontrolle

"SystemBridge"

Siehe https://system-bridge.timmo.dev/

Vorteile

  • Bereits integration in HA
  • Bietet alle Funktionen