HPS: because recovery is part of the lifecycle, not an afterthought.
HPS is an open-source platform for managing infrastructure across its full lifecycle: build, run, grow, and disaster recovery.
It treats recovery as a first-class concern, ensuring that repair and restoration are built into the same workflows that create and scale systems. The disaster recovery host and backup are planned (docs/FEATURES.md).
By making resilience part of everyday operations, HPS helps communities run infrastructure that can adapt, heal, and keep going.
Often clusters have many points of storage, lots of hosts accepting ssh, firewalls, etc which means there are lots of places to back up, lots of types of backup, many places to control access and this creates complexity. By keeping functional focus, the job of maintaining and upgrading is simpler. Storage is focused on one or tweo places, deployment of new nodes is one click, and upgrades can be rolled back.
HPS can be nested: a cluster's own IPS can run as a container on a container host of another HPS cluster (docs/CONTAINER-HOST.md). The outer cluster hosts the inner one and publishes files to it; each cluster is managed only through its own IPS (docs/OPERATOR.md).
“Magrathea was the planet whose business it was to build other planets.”
— Douglas Adams, The Hitchhiker’s Guide to the Galaxy
Air-gapped : HPS works with no connection to the internet or to any outside service. Its repositories are filled beforehand, and from then on a cluster is built, run and rebuilt from its own copies.
Autonomy : HPS runs without external parties, on any hardware, and takes on nothing that locks an installation down: no vendor service, no vendor key, no hardware feature that only some machines have.
Stateless nodes : Cluster nodes run from RAM and hold no system state: a thin host boots straight into RAM, and a disk-bearing host runs its cluster role the same way, in a virtual machine above a small bootstrap layer. Data lives on the storage hosts, and hardware is added or replaced without installing a cluster system on it.
Cold start : A cluster can always start from cold from its disk-bearing hosts: each carries a small bootstrap layer that boots without help and starts the boot server.
One boot server : The cluster is run by one boot server. Every machine is checked before it joins: none joins unchecked.
Simplicity : Plain files, Bash and Perl, no database. Disks and redundancy are handled above the hardware, so there is no hardware RAID.
docs/FEATURES.md gives the status of each feature.
This is an ALPHA release.
- The overall logic is sound.
- Implementation details are still evolving.
- Expect frequent changes until the first stable release.
The working title is HPS (Host Provisioning System)
Contributions are welcome!
Fork the repo and open a PR.
File issues for bugs, ideas, or improvements.
See CONTRIBUTING.md (to be added) for guidelines.
HPS runs inside the Debian-based IPS container (the hps-container repository), which mounts the host's /srv as /srv. This tree is installed at:
/srv/hps-systemLayer 0: Docker (compose) installation
Layer 1: hps-system installation
Layer 2: hps initialisation
Layer 4: cluster configuration
Layer 5: storage host configuration
Layer 6: compute host configuration
Once your container is running, begin setup with:
sudo docker compose exec hps /srv/hps-system/cli/cluster-configure.shFor a non-interactive setup use scripts/cluster-bootstrap.sh (see "NixOS nodes and the lab IPS" below).
This script:
- Initialises the configuration directory
/srv/hps-configif it doesn't exist - Prompts for new or existing cluster configuration
- Saves structured values to the cluster configuration and global
hps.conf - Prepares the system for PXE, TFTP and DHCP boot services (served by dnsmasq; TFTP carries only the iPXE binaries, everything after them is HTTP)
└── hps-system
├── bin hps-* commands (hps-onboard, hps-bmc, hps-jobs, ...)
├── cli
│ ├── cluster-configure.sh
│ ├── manage-distros.sh
│ ├── reload.sh
│ └── ...
├── docs reference documents and adr/
├── http
│ ├── api
│ └── cgi-bin
├── lab rig scripts for the NixOS lab trial
├── lib
│ ├── functions.d
│ ├── functions.sh
│ ├── hps-system.sh
│ └── perl HPS::* modules
├── node-manager per-OS node scripts (nixos-26, alpine-3, ...)
├── nix flake modules and the image builder
├── scripts
│ ├── cluster-bootstrap.sh
│ ├── cluster-config.d
│ ├── run-hps.sh
│ └── tests bats tests
├── t Perl tests
├── templates
└── tftp
├── ipxe.efi
├── snponly.efi
└── undionly.kpxe
Global config is saved in /srv/hps.conf (created by lib/hps-system.sh; it holds the four base paths under /srv: hps-system, hps-config, hps-resources and hps-log) and sourced by:
- cluster configurator fragments
- service startup scripts
See the hps-container README for runtime container info.
HPS can netboot NixOS 26.05 nodes straight into RAM from the IPS. An unknown
host is held (STATE=HELD) and boots an audit image, never a menu; a human
then assigns it a role, and its next boot is the node image. The first
hardware trial of this path is described in the project plan
plans/phase-1.md (kept beside the repository, not in it).
The usual sequence, with placeholders:
- Bootstrap the cluster non-interactively:
scripts/cluster-bootstrap.sh(network$NETWORK, IPS address$IPS_IP, DHCP interface$IFACE). - Build the images in the builder container (
nix/build.sh); the artefacts land underhps-resources/nixos/<pin>/<profile>/. - Power on
$NODEon the provisioning network. It boots the audit image, posts its audit and reboots by itself. Its audit appears underhps-onboard show $MAC. - The rebooted node waits at iPXE, asking the IPS again every
hold_retry_seconds(default 30; cluster key). Nothing needs power control from here.hps-onboard reaudit $MACmakes the next retry run the audit image again (at mostaudit_max_concurrentaudits run at once, default 2; the rest wait in the hold loop with "waiting for an audit slot", docs/IPXE.md); setting the cluster keyheld_reboot_after_audittofalsekeeps the audit image up after the audit, so a held node can be inspected over ctrl-exec. - Assign it:
hps-onboard assign $MAC --type $TYPE --profile $PROFILE --os $OS. The node's next retry boots its role image with no power action; it pairs with the IPS over ctrl-exec. Run node operations withscripts/hps-run.sh $NODE <script> [args].
Where to read more:
docs/FEATURES.md– what HPS does, feature by feature, with the status of each and a link to the page that explains how.docs/DEVELOPER.md– working on the tree: layout, the test suites and how to run one file, the gate, how a node script reaches a node, the generated files.docs/IMPLEMENTOR.md– what to provide and decide to install HPS: hardware, the provisioning network, the repositories to fill beforehand, the cluster keys.docs/LOGGING.md– where every IPS service and every node logs.docs/BOOT-RELIABILITY.md– why a node can miss its one PXE pass and the three layers against it: the boot-services gate, the boot-stalled watch and reset, the firmware retry setting.docs/IPS-CHECK.md– the IPS self-check run after every start (bin/hps-ips-check) and how to read its result.docs/SECURITY.md– Node identity at boot (MAC on the provisioning network, no secret in an image) and Node scripts under the executor.docs/adr/0002-ctrl-exec-enrolment-trust.md– registry-bound approval of node pairing, including theHELDaudit image and the per-boot pairing window.docs/adr/0003-ctrl-exec-agent-packaging.md– agent delivery; the 2026-11-09 amendment covers NixOS nodes and the executor.docs/adr/0007-authorisation-is-ctrl-exec.md– who may run a destructive action is ctrl-exec's decision; HPS's signed approvals are removed.CHANGELOG.md– the phase 1 span, and.nonfunctional-report.mdfor the state of the trial against the eight audit dimensions.
You need hardware and the IPS. Nodes boot into RAM from the IPS (NixOS 26.05 images built with nix/build.sh, or the stock NixOS 26.05 or Alpine 3.24 starter with the node bundle, docs/STARTER.md), so a cluster node needs no installed cluster operating system. Disk-bearing hosts are planned to carry a small bootstrap layer, deployed by the boot server, that starts the boot server and the cluster role as a virtual machine (docs/FEATURES.md).
- Docker container (the
hps-containerrepository), host networking - Storage for the images under
/srv/hps-resources
- Boot from the network (UEFI PXE); disk-bearing hosts are planned to try the network first and fall back to a small bootstrap layer on a local disk (
docs/FEATURES.md) - RAM for the node image and its workload; a storage node also needs data disks, named by
by-idpath
Watch the console for errors, and alsop the logfile which is probably too verbose. Grep for the MAC address for server-specific info.
Common issues:
- a storage node without the data disks its role needs
- BIOS or UEFI not set to boot from the network
- Download, install, PR