In use · three hosts, every app here
A fleet, without the cluster.
A cluster is a platform to run before you run anything. iacthing is every host and service in one repository, and one command that makes each machine match it.
- 3 hosts, one repository
- 12 roles a host is built from
- 7 apps on one box
- 1 command per switch
Features
The machines, as files.
-
A host is a file
Its users, its firewall and what it runs, in one file per machine.
-
A service is a module
An app, a database or a backup is a role a host switches on, written once for every host.
-
It fails before it ships
The whole system is built on the workstation first, so a typo never reaches a running box.
How it works
NixOS, a flake and a switch.
-
1
Declare
Every host and every service is a file in git, so the fleet is whatever the repository says.
-
2
Build
The system is evaluated and built before anything is copied, so secrets and syntax are checked first.
-
3
Switch
One command per host, then every app's health is checked, so a bad deploy shows itself at once.
What it runs
The ground the other things stand on.
-
hostingthing
Serves every site on this list, from prod01.
-
secretsthing
Each host decrypts its own secrets at boot, and nothing else.
-
dnsthing
Every domain points at the fleet from a file in git.
-
providerthing
The services the fleet rents, from mail to the backup bucket.
-
outboxthing
The mail every app on the fleet sends.
-
vpsthing
The same idea, cut down to one box.
Who built it
Built by Rytter.
I'm Jakob Rytter. I build software and run it, from the server to the screen, and iacthing runs every machine I own.