mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-01 07:02:40 +00:00
Add Numa and other CPU type support
This commit is contained in:
parent
f6b0d92053
commit
1d79b7ec8d
|
@ -97,6 +97,16 @@ func resourceVmQemu() *schema.Resource {
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: 1,
|
Default: 1,
|
||||||
},
|
},
|
||||||
|
"cpu": {
|
||||||
|
Type: schema.TypeString,
|
||||||
|
Optional: true,
|
||||||
|
Default: "host",
|
||||||
|
},
|
||||||
|
"numa": {
|
||||||
|
Type: schema.TypeBool,
|
||||||
|
Optional: true,
|
||||||
|
Default: false,
|
||||||
|
},
|
||||||
"scsihw": {
|
"scsihw": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
@ -386,6 +396,8 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
|
||||||
Memory: d.Get("memory").(int),
|
Memory: d.Get("memory").(int),
|
||||||
QemuCores: d.Get("cores").(int),
|
QemuCores: d.Get("cores").(int),
|
||||||
QemuSockets: d.Get("sockets").(int),
|
QemuSockets: d.Get("sockets").(int),
|
||||||
|
QemuCpu: d.Get("cpu").(string),
|
||||||
|
QemuNuma: d.Get("numa").(bool),
|
||||||
Scsihw: d.Get("scsihw").(string),
|
Scsihw: d.Get("scsihw").(string),
|
||||||
QemuOs: d.Get("qemu_os").(string),
|
QemuOs: d.Get("qemu_os").(string),
|
||||||
QemuNetworks: qemuNetworks,
|
QemuNetworks: qemuNetworks,
|
||||||
|
@ -545,6 +557,8 @@ func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error {
|
||||||
Memory: d.Get("memory").(int),
|
Memory: d.Get("memory").(int),
|
||||||
QemuCores: d.Get("cores").(int),
|
QemuCores: d.Get("cores").(int),
|
||||||
QemuSockets: d.Get("sockets").(int),
|
QemuSockets: d.Get("sockets").(int),
|
||||||
|
QemuCpu: d.Get("cpu").(string),
|
||||||
|
QemuNuma: d.Get("numa").(bool),
|
||||||
Scsihw: d.Get("scsihw").(string),
|
Scsihw: d.Get("scsihw").(string),
|
||||||
QemuOs: d.Get("qemu_os").(string),
|
QemuOs: d.Get("qemu_os").(string),
|
||||||
QemuNetworks: qemuNetworks,
|
QemuNetworks: qemuNetworks,
|
||||||
|
@ -636,6 +650,8 @@ func resourceVmQemuRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
d.Set("memory", config.Memory)
|
d.Set("memory", config.Memory)
|
||||||
d.Set("cores", config.QemuCores)
|
d.Set("cores", config.QemuCores)
|
||||||
d.Set("sockets", config.QemuSockets)
|
d.Set("sockets", config.QemuSockets)
|
||||||
|
d.Set("cpu", config.QemuCpu)
|
||||||
|
d.Set("numa", config.QemuNuma)
|
||||||
d.Set("scsihw", config.Scsihw)
|
d.Set("scsihw", config.Scsihw)
|
||||||
d.Set("qemu_os", config.QemuOs)
|
d.Set("qemu_os", config.QemuOs)
|
||||||
// Cloud-init.
|
// Cloud-init.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user