Files
mesh-controller/internal/inventory/migrations/0100-a-send-keeps-the-provisioners-plans.sql
T

11 lines
851 B
SQL

-- What a machine was last sent of the provisioner's plans (novox/hq ADR 0349 §4, design 57 P6, issue 672).
--
-- A module marked moved is handed to the provisioner on a machine whose node-engine takes a filled file on the
-- client's word alone: its declaration names the files the client fills, and the client fills them from the
-- module's plan — its templates archive by digest, each file's path and template, and the placement values its
-- templates name. The plans are composed with the declaration and kept with its send, by module, so the
-- assignments mirror carries the plan of the build that machine was sent (inventory.Provisioning) and a walk waits
-- for the client's report on that build's templates. Null for a machine sent nothing handed. No secret: placement
-- is not one.
alter table node add column sent_provisioning jsonb;