|
|
|
|
@ -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},
|
|
|
|
|
|