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:
mm-core fleet export > fleet.toml # on a host: the fleet as it is nowmm-core fleet status fleet.toml # what's paired, missing or extra on this machinemm-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 outputrole = "both" # agent, host or bothaddress = "192.168.0.50" # optional; found on the network otherwiseMachine 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.