From 54afe0b880cd4acf05d285013b01d5392038abf7 Mon Sep 17 00:00:00 2001 From: loloolllool Date: Sat, 14 Nov 2020 23:41:16 +0100 Subject: [PATCH] Generating new hcl2specs for proxmox builder. --- builder/proxmox/clone/config.hcl2spec.go | 2 ++ builder/proxmox/common/config.hcl2spec.go | 2 ++ builder/proxmox/iso/config.hcl2spec.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/builder/proxmox/clone/config.hcl2spec.go b/builder/proxmox/clone/config.hcl2spec.go index 074f82d6f..ea333d2aa 100644 --- a/builder/proxmox/clone/config.hcl2spec.go +++ b/builder/proxmox/clone/config.hcl2spec.go @@ -83,6 +83,7 @@ type FlatConfig struct { Pool *string `mapstructure:"pool" cty:"pool" hcl:"pool"` VMName *string `mapstructure:"vm_name" cty:"vm_name" hcl:"vm_name"` VMID *int `mapstructure:"vm_id" cty:"vm_id" hcl:"vm_id"` + Boot *string `mapstructure:"boot" cty:"boot" hcl:"boot"` Memory *int `mapstructure:"memory" cty:"memory" hcl:"memory"` Cores *int `mapstructure:"cores" cty:"cores" hcl:"cores"` CPUType *string `mapstructure:"cpu_type" cty:"cpu_type" hcl:"cpu_type"` @@ -190,6 +191,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec { "pool": &hcldec.AttrSpec{Name: "pool", Type: cty.String, Required: false}, "vm_name": &hcldec.AttrSpec{Name: "vm_name", Type: cty.String, Required: false}, "vm_id": &hcldec.AttrSpec{Name: "vm_id", Type: cty.Number, Required: false}, + "boot": &hcldec.AttrSpec{Name: "boot", Type: cty.String, Required: false}, "memory": &hcldec.AttrSpec{Name: "memory", Type: cty.Number, Required: false}, "cores": &hcldec.AttrSpec{Name: "cores", Type: cty.Number, Required: false}, "cpu_type": &hcldec.AttrSpec{Name: "cpu_type", Type: cty.String, Required: false}, diff --git a/builder/proxmox/common/config.hcl2spec.go b/builder/proxmox/common/config.hcl2spec.go index 5675e2d69..f47b11958 100644 --- a/builder/proxmox/common/config.hcl2spec.go +++ b/builder/proxmox/common/config.hcl2spec.go @@ -82,6 +82,7 @@ type FlatConfig struct { Pool *string `mapstructure:"pool" cty:"pool" hcl:"pool"` VMName *string `mapstructure:"vm_name" cty:"vm_name" hcl:"vm_name"` VMID *int `mapstructure:"vm_id" cty:"vm_id" hcl:"vm_id"` + Boot *string `mapstructure:"boot" cty:"boot" hcl:"boot"` Memory *int `mapstructure:"memory" cty:"memory" hcl:"memory"` Cores *int `mapstructure:"cores" cty:"cores" hcl:"cores"` CPUType *string `mapstructure:"cpu_type" cty:"cpu_type" hcl:"cpu_type"` @@ -187,6 +188,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec { "pool": &hcldec.AttrSpec{Name: "pool", Type: cty.String, Required: false}, "vm_name": &hcldec.AttrSpec{Name: "vm_name", Type: cty.String, Required: false}, "vm_id": &hcldec.AttrSpec{Name: "vm_id", Type: cty.Number, Required: false}, + "boot": &hcldec.AttrSpec{Name: "boot", Type: cty.String, Required: false}, "memory": &hcldec.AttrSpec{Name: "memory", Type: cty.Number, Required: false}, "cores": &hcldec.AttrSpec{Name: "cores", Type: cty.Number, Required: false}, "cpu_type": &hcldec.AttrSpec{Name: "cpu_type", Type: cty.String, Required: false}, diff --git a/builder/proxmox/iso/config.hcl2spec.go b/builder/proxmox/iso/config.hcl2spec.go index 272f8a794..374456efc 100644 --- a/builder/proxmox/iso/config.hcl2spec.go +++ b/builder/proxmox/iso/config.hcl2spec.go @@ -83,6 +83,7 @@ type FlatConfig struct { Pool *string `mapstructure:"pool" cty:"pool" hcl:"pool"` VMName *string `mapstructure:"vm_name" cty:"vm_name" hcl:"vm_name"` VMID *int `mapstructure:"vm_id" cty:"vm_id" hcl:"vm_id"` + Boot *string `mapstructure:"boot" cty:"boot" hcl:"boot"` Memory *int `mapstructure:"memory" cty:"memory" hcl:"memory"` Cores *int `mapstructure:"cores" cty:"cores" hcl:"cores"` CPUType *string `mapstructure:"cpu_type" cty:"cpu_type" hcl:"cpu_type"` @@ -196,6 +197,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec { "pool": &hcldec.AttrSpec{Name: "pool", Type: cty.String, Required: false}, "vm_name": &hcldec.AttrSpec{Name: "vm_name", Type: cty.String, Required: false}, "vm_id": &hcldec.AttrSpec{Name: "vm_id", Type: cty.Number, Required: false}, + "boot": &hcldec.AttrSpec{Name: "boot", Type: cty.String, Required: false}, "memory": &hcldec.AttrSpec{Name: "memory", Type: cty.Number, Required: false}, "cores": &hcldec.AttrSpec{Name: "cores", Type: cty.Number, Required: false}, "cpu_type": &hcldec.AttrSpec{Name: "cpu_type", Type: cty.String, Required: false},