more variables for the grub templates

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2025-03-31 12:19:02 +02:00
committed by Jonathon Anderson
parent 7d437e9e58
commit b8641b8569
2 changed files with 12 additions and 2 deletions

View File

@@ -29,11 +29,13 @@ type templateVars struct {
Id string
Cluster string
ImageName string
Ipxe string
Hwaddr string
Ipaddr string
Port string
KernelArgs string
KernelVersion string
Root string
Tags map[string]string
NetDevs map[string]*node.NetDev
}
@@ -124,6 +126,7 @@ func ProvisionSend(w http.ResponseWriter, req *http.Request) {
ImageName: remoteNode.ImageName,
KernelArgs: kernelArgs,
KernelVersion: kernelVersion,
Root: remoteNode.Root,
NetDevs: remoteNode.NetDevs,
Tags: remoteNode.Tags}
} else if rinfo.stage == "kernel" {
@@ -209,8 +212,10 @@ func ProvisionSend(w http.ResponseWriter, req *http.Request) {
Hostname: remoteNode.Id(),
Hwaddr: rinfo.hwaddr,
ImageName: remoteNode.ImageName,
Ipxe: remoteNode.Ipxe,
KernelArgs: kernelArgs,
KernelVersion: kernelVersion,
Root: remoteNode.Root,
NetDevs: remoteNode.NetDevs,
Tags: remoteNode.Tags}
if stage_file == "" {