Reference
Modules
Building blocks for every app – choose them when you create a guest or add them any time, in containers and VMs alike.
Modules are building blocks shared across apps. Any module fits any app, as long as it supports
the platform. Active modules take part in each update, so they stay current.
All modules
Each one has its own page with the commands to add or remove it and tips on using it:
unattended-upgrades
Automatic update (nightly)auto-update
Backup (restic)backup
ClamAV (virus scan)clamav
CrowdSeccrowdsec
Desktop (XFCE, RDP)desktop
Disk space checkdisk-space
Elasticsearchelasticsearch
fail2banfail2ban
Mail relay (Postfix)mail-relay
MariaDBmariadb
PostgreSQLpostgresql
Prometheus node exporternode-exporter
Security reportsecurity-report
Shared media foldermedia-share
Shell aliasesaliases
Valkey (Redis)valkeyModules under Requires on an app’s page are ones the app can’t run without (NetBox needs its database, for instance). They’re always active there and can’t be removed.
Choose when creating
| Where | How |
|---|---|
| Dialog | choose “advanced”, then tick the modules – the app’s preselection is already set |
| Generator on the app page | tick the modules, the command then contains var_modules |
| Without a dialog | var_modules=node-exporter,unattended-upgrades (var_modules='' = none) |
Note that var_modules replaces the preselection – include auto-update in the list if you want to
keep it.
Add later
Inside the guest as root – containers and VMs work alike:
update -lm # available for this guest, numbered, ✓ = active
update -am node-exporter # add
update -am 1,3 # add modules 1 and 3 from the list
Sample output:
Modules for this LXC – 2 of 12 active
# Active Module Title
1 ✓ auto-update Automatic update (nightly)
2 backup Backup (restic)
3 crowdsec CrowdSec
…
9 ✓ postgresql PostgreSQL – required by the app
…
Add: update -am NAME|NUMBER,… e.g. update -am 2,fail2ban
Remove: update -rm NAME|NUMBER,…
Details: https://iac.heyer.systems/modules/NAME/
Descriptions live on the module pages – Details gives the address.
Wherever a module is expected, a name or its number from update -lm will do, even mixed
(update -am 2,fail2ban). The long forms --list-modules, --add-modules and
--remove-modules are accepted too.
update -am is a normal update that installs the new modules along the way. Asking for a module
this platform lacks (e.g. desktop in a container) fails before anything changes.
Guests managed by NetBox get their modules from the field Modules of their VM:
iac-provisioner sets back a change made with update -am or -rm within
minutes. Change the field in NetBox instead – update warns and asks first in such a guest.
You can also skip the login and go straight from the Proxmox host:
pct exec 105 -- update --add-modules node-exporter # container 105
ssh root@192.168.40.21 update --add-modules node-exporter # VM
Remove
update -rm desktop # remove single modules (also by number: update -rm 2)
update --modules '' # remove all optional modules
update --modules node-exporter # set the selection completely
Removing a module takes its packages, services, firewall rules and configuration with it. Data stays – a PostgreSQL database, for example, is stopped but not deleted.
Your own modules
A module is an Ansible role in iac-core plus an entry in the catalog modules.json. The app
reference explains how.
Module sind gemeinsame Bausteine für Apps. Jedes Modul passt zu jeder App, sofern es die Plattform unterstützt. Aktive Module werden bei jedem update mit gepflegt.
Alle Module
Die Modulseiten enthalten Befehle zum Hinzufügen und Entfernen sowie Nutzungshinweise:
unattended-upgrades
Automatic update (nightly)auto-update
Backup (restic)backup
ClamAV (virus scan)clamav
CrowdSeccrowdsec
Desktop (XFCE, RDP)desktop
Disk space checkdisk-space
Elasticsearchelasticsearch
fail2banfail2ban
Mail relay (Postfix)mail-relay
MariaDBmariadb
PostgreSQLpostgresql
Prometheus node exporternode-exporter
Security reportsecurity-report
Shared media foldermedia-share
Shell aliasesaliases
Valkey (Redis)valkeyUnter Requires stehen zwingende App-Abhängigkeiten, etwa die Datenbank von NetBox. Diese Module sind immer aktiv und können nicht entfernt werden.
Beim Erstellen auswählen
| Ort | Vorgehen |
|---|---|
| Dialog | advanced wählen und Module markieren; die App-Vorauswahl ist bereits gesetzt |
| Generator auf der App-Seite | Module markieren; der Befehl enthält anschließend var_modules |
| Ohne Dialog | var_modules=node-exporter,unattended-upgrades; var_modules='' wählt keine optionalen Module |
var_modules ersetzt die Vorauswahl. auto-update ausdrücklich mit aufführen, wenn es erhalten bleiben soll.
Später hinzufügen
Im Gast als root, gleichermaßen bei Containern und VMs:
update -lm
update -am node-exporter
update -am 1,3
update -lm listet passende Module mit Nummern und markiert aktive mit ✓. Namen und Nummern lassen sich mischen, etwa update -am 2,fail2ban. Die langen Optionen heißen --list-modules, --add-modules und --remove-modules. Die Detailadresse in der Ausgabe führt zur jeweiligen Modulseite.
update -am ist ein normales Update, das zusätzlich die Module installiert. Nicht unterstützte Kombinationen, etwa desktop im Container, werden vor Änderungen abgewiesen.
NetBox-verwaltete Gäste: Maßgeblich ist das Feld Modules der NetBox-VM. iac-provisioner setzt manuelle Änderungen mit -am oder -rm innerhalb weniger Minuten zurück. Stattdessen das Feld in NetBox ändern. update weist bei verwalteten Gästen darauf hin und fragt nach.
Direkt vom Proxmox-Host:
pct exec 105 -- update --add-modules node-exporter
ssh root@192.168.40.21 update --add-modules node-exporter
Entfernen
update -rm desktop
update --modules ''
update --modules node-exporter
Der erste Befehl entfernt ein Modul, der zweite alle optionalen Module, der dritte ersetzt die gesamte Auswahl. Entfernt werden Pakete, Dienste, Firewallregeln und Konfiguration. Daten bleiben erhalten: Eine PostgreSQL-Datenbank wird beispielsweise gestoppt, nicht gelöscht.
Eigene Module
Ein Modul besteht aus einer Ansible-Rolle in iac-core und einem Eintrag in modules.json. Details im App-Manifest.

