Skip to content

Describe the fleet in a file

Instead of pairing machine by machine, keep the whole fleet in fleet.toml and apply it, the way you would a Compose file:

Terminal window
mm-core fleet export > fleet.toml # on a host: the fleet as it is now
mm-core fleet status fleet.toml # what's paired, missing or extra on this machine
mm-core fleet apply fleet.toml # make this machine match (--prune revokes unlisted ones)
[[machine]]
name = "web1"
id = "7a6a509b…" # full ID, from `fleet export` or the install output
role = "both" # agent, host or both
address = "192.168.0.50" # optional; found on the network otherwise

Machine IDs are public fingerprints, not secrets. A copy of the file can’t add anyone’s machine to your fleet: only machines whose IDs you list are trusted.

To add a machine: install it, add its entry, then run apply on it and on one host. Hosts paired with each other both ways share the change.