Repository navigation
Provisioning
Jackson Sá edited this page Oct 21, 2026
·
1 revision
aux provision (crates/aux-cli/src/provision.rs) sets a machine up from a provision file. Using it: Provisioning Virtual Machines. Reference: docs/provision.md.
-
Provision::parsereads YAML or JSON (unknown keys refused) and validates everything first: the version, the profile, host and user names, the enrollment token's shape, that a joining profile runs a node and names a user, the preferences (agentuxd::prefs::validate) and the policy (Policy::parse). -
apply()works through aSystemtrait (real:Host; tests record the calls):hostnamectl,agentux profile seed, the policy file,loginctl enable-linger, the user's preferences (owned by the user),runuser -u USER -- aux node enrollwith the token andHOMEin the environment, thensystemctl --user --machine USER@.host enable --now agentuxd agentux-gateway. -
run_auto()(theagentux-provision.servicein agentux-os) skips a provisioned machine, loadsqemu_fw_cfg, mounts a filesystem labelledAGENTUXread-only, takes the first source (kernel command line, fw_cfg, the media,/boot,/etc), applies it, records/var/lib/agentux/provisioned.jsonand deletes a spent file in/bootor/etc.