Life-Cycle
Install
Create a container or VM – with the dialog, without a dialog, or with Docker.
Container or VM?
| LXC container | VM | |
|---|---|---|
| Script | ct.sh | vm.sh |
| Based on | Proxmox’s Debian 13 template | a ready-built, tested image of the app |
| Installation | runs inside the container while it’s created | already in the image – the first boot only applies the instance settings |
| Resources | lightweight | own kernel, more RAM |
| Best for | most services | kernel features, Docker in the guest, desktop |
Either way the result is identical: packages, configuration and update don’t differ. Each app
page lists the platforms it offers.
Want NetBox to drive guest creation instead? See NetBox provisioning.
With the dialog
On the Proxmox host as root:
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/ct.sh)" # container
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/vm.sh)" # VM
default sticks to the app’s defaults, advanced asks about everything – including the
modules and where the SSH keys come from (file, URL like https://git.example/<user>.keys, paste).
Without a dialog
Set IAC_NONINTERACTIVE=1 and the app’s defaults apply, plus whatever var_* you pass:
IAC_NONINTERACTIVE=1 var_net=192.168.40.20/24 var_gateway=192.168.40.1 \
var_modules=node-exporter,unattended-upgrades \
bash -c "$(curl -fsSL https://iac.heyer.systems/traefik/ct.sh)"
No need to type this out: the generator on each app page builds the command for you. Here are all variables, grouped:
Guest
| Variable | Meaning | Default |
|---|---|---|
var_id | ID of the guest | next free |
var_hostname | hostname | name of the app |
var_start | start after creating (1 / 0) | 1 |
Resources and storage
| Variable | Meaning | Default |
|---|---|---|
var_cpu | CPU cores | app’s value |
var_ram | RAM in MiB (at least 512) | app’s value |
var_disk | disk in GiB | app’s value |
var_storage | Proxmox storage for the disk | first suitable |
var_template_storage | storage of the Debian template (LXC only) | first suitable |
var_usb | USB devices of the host as <vendor>:<product> like lsusb shows them, space-separated, e.g. 1cf1:0030 (Zigbee stick) – a VM gets USB passthrough, a container only serial devices (/dev/serial/by-id/…) | none |
Network
| Variable | Meaning | Default |
|---|---|---|
var_bridge | network bridge | vmbr0 |
var_vlan | VLAN tag | none |
var_net | dhcp or a static address like 192.168.40.20/24 | dhcp |
var_gateway | gateway for a static address | – |
var_nameserver | DNS servers | like the host |
var_searchdomain | search domain | like the host |
var_mac | MAC address of eth0, e.g. BC:24:11:12:34:56 | random |
Modules, access and app settings
| Variable | Meaning | Default |
|---|---|---|
var_modules | modules, comma-separated ('' = none) – replaces the preselection | the app’s preselection (incl. auto-update) |
var_media | Directory Mapping of the host mounted under /media – bind mount (LXC) or virtiofs (VM), selects the module media-share | none |
var_ssh_keys | file, URL or key line | /root/.ssh/authorized_keys of the host |
var_<setting> | settings of the app, e.g. var_db_host (LXC only so far) | – |
VM only
| Variable | Meaning | Default |
|---|---|---|
var_image_version | a specific image version | latest |
Result as JSON
Scripts can set IAC_RESULT=/path/result.json to get the outcome as JSON at the end:
| Field | Content |
|---|---|
status | ok or failed |
kind, app | lxc or vm, and the app |
id, hostname, node | the guest and the Proxmox node it runs on |
mac, ip | network addresses of the guest |
modules | the chosen modules |
guest_exists | whether the guest exists – it’s kept after a failure |
error | the reason on failure |
log | path to the log on the host |
core_ref, app_ref | the versions of iac-core and the app that were used |
VM images
VM images are built automatically, booted and checked in a test VM, and published only after
that – whenever the app changes, and each Monday with fresh Debian packages.
vm.sh downloads it with a SHA256 checksum and verifies it before the import. The disk grows
to the chosen size when the guest is created.
Prefer to fetch an image by hand? It’s at https://iac.heyer.systems/<app>/image/latest, with
…/image/SHA256SUMS next to it.
Docker
Apps with a Docker variant come with a simple docker-compose.yml:
mkdir -p /opt/traefik && cd /opt/traefik
curl -fsSL https://iac.heyer.systems/traefik/docker-compose.yml -o docker-compose.yml
docker compose up -d
Ports and settings go into a .env next to it (e.g. PORT_80=8081). Modules and update are LXC
and VM features; Docker has neither.
Test a branch
IAC_APP_REF=<branch> IAC_CORE_REF=<branch> bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/ct.sh)"
IAC_APP_REF selects the state of the app, IAC_CORE_REF does the same for iac-core.
Container oder VM?
| LXC-Container | VM | |
|---|---|---|
| Skript | ct.sh | vm.sh |
| Grundlage | Debian-13-Vorlage von Proxmox | Fertig gebautes und getestetes App-Image |
| Installation | Beim Erstellen im Container | Bereits im Image; erster Start übernimmt die Instanzeinstellungen |
| Ressourcen | Ressourcensparend | Eigener Kernel, höherer RAM-Bedarf |
| Geeignet für | Die meisten Dienste | Kernel-Funktionen, Docker im Gast, Desktop |
Pakete, Konfiguration und update führen zum gleichen Zielzustand. Jede App-Seite nennt die angebotenen Plattformen. Für zentral geplante Gäste: NetBox-Bereitstellung.
Mit Dialog
Auf dem Proxmox-Host als root:
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/ct.sh)" # Container
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/vm.sh)" # VM
default verwendet die App-Standardwerte. advanced fragt alle Werte einschließlich Modulen und SSH-Schlüsseln ab. Schlüssel können aus einer Datei, einer URL wie https://git.example/<user>.keys oder einer eingefügten Schlüsselzeile stammen.
Ohne Dialog
Mit IAC_NONINTERACTIVE=1 gelten die App-Standardwerte und deine übergebenen var_*-Werte:
IAC_NONINTERACTIVE=1 var_net=192.168.40.20/24 var_gateway=192.168.40.1 \
var_modules=node-exporter,unattended-upgrades \
bash -c "$(curl -fsSL https://iac.heyer.systems/traefik/ct.sh)"
Der Generator auf der App-Seite erstellt den Befehl für dich.
Gastsystem
| Variable | Bedeutung | Standard |
|---|---|---|
var_id | Gast-ID | Nächste freie ID |
var_hostname | Hostname | App-Name |
var_start | Nach dem Erstellen starten (1 / 0) | 1 |
Ressourcen und Speicher
| Variable | Bedeutung | Standard |
|---|---|---|
var_cpu | CPU-Kerne | App-Vorgabe |
var_ram | RAM in MiB, mindestens 512 | App-Vorgabe |
var_disk | Datenträger in GiB | App-Vorgabe |
var_storage | Proxmox-Storage für den Datenträger | Erster geeigneter |
var_template_storage | Storage der Debian-Vorlage, nur LXC | Erster geeigneter |
var_usb | USB-Geräte des Hosts als <vendor>:<product>, wie lsusb sie zeigt, durch Leerzeichen getrennt, z. B. 1cf1:0030 (Zigbee-Stick) – eine VM erhält USB-Passthrough, ein Container nur serielle Geräte (/dev/serial/by-id/…) | Keine |
Netzwerk
| Variable | Bedeutung | Standard |
|---|---|---|
var_bridge | Netzwerk-Bridge | vmbr0 |
var_vlan | VLAN-Tag | Keines |
var_net | dhcp oder statische Adresse wie 192.168.40.20/24 | dhcp |
var_gateway | Gateway bei statischer Adresse | – |
var_nameserver | DNS-Server | Wie auf dem Host |
var_searchdomain | Suchdomäne | Wie auf dem Host |
var_mac | MAC von eth0, z. B. BC:24:11:12:34:56 | Zufällig |
Module, Zugang und App-Einstellungen
| Variable | Bedeutung | Standard |
|---|---|---|
var_modules | Kommagetrennte Module; '' bedeutet keine. Ersetzt die Vorauswahl | App-Vorauswahl einschließlich auto-update |
var_media | Directory Mapping des Hosts unter /media: Bind-Mount bei LXC, virtiofs bei VM; aktiviert media-share | Keines |
var_ssh_keys | Datei, URL oder Schlüsselzeile | /root/.ssh/authorized_keys des Hosts |
var_<setting> | App-Einstellungen, etwa var_db_host, bisher nur LXC | – |
Nur VM
| Variable | Bedeutung | Standard |
|---|---|---|
var_image_version | Bestimmte Image-Version | Neueste |
Ergebnis als JSON
Mit IAC_RESULT=/path/result.json schreiben die Skripte abschließend das Ergebnis als JSON:
| Feld | Inhalt |
|---|---|
status | ok oder failed |
kind, app | lxc bzw. vm und App-Name |
id, hostname, node | Gast und ausführender Proxmox-Knoten |
mac, ip | Netzwerkadressen |
modules | Gewählte Module |
guest_exists | Ob der Gast existiert; er bleibt nach einem Fehler erhalten |
error | Fehlerursache |
log | Logpfad auf dem Host |
core_ref, app_ref | Verwendete Versionen von iac-core und App |
VM-Images
Die CI baut Images, startet sie in einer Test-VM und prüft die App, bevor sie veröffentlicht werden – bei App-Änderungen und montags mit aktuellen Debian-Paketen. vm.sh prüft vor dem Import die SHA256-Prüfsumme. Beim Erstellen wächst der Datenträger auf die gewählte Größe.
Manueller Download: https://iac.heyer.systems/<app>/image/latest; Prüfsummen: …/image/SHA256SUMS.
Docker
Apps mit Docker-Variante liefern eine docker-compose.yml:
mkdir -p /opt/traefik && cd /opt/traefik
curl -fsSL https://iac.heyer.systems/traefik/docker-compose.yml -o docker-compose.yml
docker compose up -d
Ports und Einstellungen stehen in einer benachbarten .env, etwa PORT_80=8081. Module und der Befehl update gehören zu LXC/VM; Docker verwendet beides nicht.
Einen Branch testen
IAC_APP_REF=<branch> IAC_CORE_REF=<branch> bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/ct.sh)"
IAC_APP_REF wählt den App-Stand, IAC_CORE_REF den Stand von iac-core.