Forgejo

Appearance

Make haypack comfortable for you.

Theme
Font
Contrast
Text size
Layout

Saved in this browser. No cookies.

Documentation menu

Manifests

Core Manifest

Proxmox host, guest, target state – and why every guest looks alike, however it was made.

haypack creates services on Proxmox VE as LXC containers or VMs, always on Debian 13. Each app is an Ansible role that describes its target state; iac-core runs it inside the guest:

flowchart LR
  subgraph host["Proxmox host"]
    ct["ct.sh"]
    vm["vm.sh"]
  end
  subgraph guest["Guest – Debian 13"]
    play["Target state<br/>Ansible, local in the guest"]
    state["packages · configuration · firewall · services<br/>health check → /etc/iac/instance.json"]
    play --> state
  end
  ct -- "creates the container" --> play
  vm -- "imports a tested image" --> play
  upd["update<br/>Debian packages + the same target state"] --> play
  adopt["adopt.sh<br/>check, back up, then the same target state"] --> play

No matter how a guest comes to life, it ends up in one idempotent playbook. That’s why a container, a VM from an image and an adopted installation look alike – and why update is safe to run at any time.

Principles

  • Debian only, packages from Debian wherever possible; anything else with a pinned version and a checksum.
  • No controller, no inventory, no SSH push – Ansible only runs locally in the guest.
  • No secrets in repositories or images – they are generated per instance.
  • Small base – backup, monitoring, security tools and databases are optional modules.
  • Extras stay optional – NetBox provisioning and the internal CA are additions; each app works fine without them.

The name

haypack was called iac until 2026. The technical names keep it for now – the repositories (iac-core, iac-<app>), iac.json, the paths in a guest (/etc/iac/), commands such as iac-tls and the tags in Proxmox and NetBox – so that every existing guest keeps working.