Skip to main content

load_inventory

Function load_inventory 

Source
pub fn load_inventory<P: AsRef<Path>>(
    path: P,
) -> Result<(Vec<CascadeNode>, NodeId, HashMap<NodeId, String>)>
Expand description

Load a TOML inventory file. Returns (nodes, seed_id, addr_map):

  • nodes: the cascade’s node list, seed at NodeId(0), targets following
  • seed_id: always NodeId(0), returned for clarity at call sites
  • addr_map: NodeId → SSH address, ready to hand to NixCopyExecutor