Skip to content

plugin-deploy-vm

Placement runtime (out-of-process over gRPC)
Source github.com/opencharly/plugin-deploy-vm/candy/plugin-deploy-vm
Candy plugin-deploy-vm

This plugin is not listed in charly/charly.yml’s compiled_plugins:. It is not part of the shipped binary: charly builds and loads it out-of-process over gRPC when a plan references one of its words (the coexist path).

The reserved words this plugin serves:

  • vm — deploy class

OUT-OF-TREE charly DEPLOY plugin serving the vm deploy SUBSTRATE — target: vm (a deployment applied INSIDE a running VM over SSH). A standalone Go module (go.mod + main.go) served over go-plugin gRPC via the charly plugin SDK; charly’s loader host-builds the provider binary and connects it OUT-OF-PROCESS (LocalTransport). The generic pluginDeployTarget (charly core) reaches it via candy/plugin-fleet’s Invoke(OpDeployDispatch) -> sdk.Executor.InvokeProvider, which Invokes it (OpExecute) with the deployment’s InstallPlan VIEWS + a venue descriptor, and the host’s executor served on the broker — for vm the GUEST SSHExecutor THIS PLUGIN’s own venue lifecycle built after booting the domain, waiting for sshd / cloud-init, and ensuring charly is in the guest. The plugin dials BACK through the SDK Executor and hands the plans to the shared kit.WalkPlans: the plugin-renderable step kinds (Op/File/ShellHook + env.d-managed-block/ShellSnippet/Service*/ RepoChange) it EXECUTES itself via the F2 reverse legs (RunSystem/RunUser/PutFile) INSIDE THE GUEST, echoing the host-computed reverse ops; the HOST-ENGINE kinds (Builder/LocalPkgInstall/SystemPackages/act-Op/ ExternalPlugin) AND a reboot: true RebootStep it drives over the RunHostStep reverse leg (builders run on the host’s podman + scp into the guest; a reboot reboots the guest + waits for the boot_id change). It returns the combined teardown ops the host records in the install ledger and replays at charly deploy del. The vm-substrate sibling of candy/plugin-deploy-local; this plugin owns BOTH the VM lifecycle (boot/destroy/console/ssh + nested pod-in-guest) and the plan WALK — no core-side lifecycle hook remains.

The CUE schema below is the authoritative grammar for this plugin’s input. It is the same single source that generates the plugin’s Go parameter types and answers the runtime Describe RPC, so this page cannot disagree with either.

// plugin-deploy-vm's OWN self-contained CUE schema — the SINGLE SOURCE for this plugin's
// served declaration surface (there is no schema-less plugin: every plugin ships a
// non-empty schema over Describe).
//
// SELF-CONTAINED and PACKAGE-LESS: it references no base def and carries no package
// clause, so it compiles STANDALONE — the property the SDK's serve-side compile needs
// and the property that lets the host splice `base ++ plugin` at the load gate
// (registerPluginUnitSchema); a self-contained schema that will not splice is a LOUD
// load failure.
//
// NO GO CONSUMER: the plugin declares no typed `plugin_input` (its authored input is
// its pass-through CLI grammar), so this schema generates NO `params` package and has
// NO `cue exp gengotypes` artifact — it is the SERVED documentation/config surface,
// not a code-generation source.
//
// It DOCUMENTS the `deploy: vm` substrate word and its venue lifecycle.
#DeployVMPlugin: {
// The deploy substrate word this plugin serves.
deploy: "vm"
// The substrate owns a venue lifecycle (prepare-venue/start/stop/…).
lifecycle: true
// What the plugin does, in one line (the public-docs surface).
contract: string & !=""
}

See also the candy reference for this candy’s install surface.