File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - Expose ability to configure guest CPU.
13
+
10
14
## [ 1.7.0] - 2023-04-03
11
15
12
16
### Changed
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ This module is an opinionated take on creating a VM in Proxmox; not all possible
15
15
| clone | Name of the template to clone (ignored when pxe_boot is true). | ` string ` | ` null ` | no |
16
16
| cloudinit_cdrom_storage | Name of the storage to create the cloud-init image in (e.g. local-lvm). | ` string ` | ` null ` | no |
17
17
| cores | Number of cores to allocate. | ` number ` | n/a | yes |
18
+ | cpu | The type of CPU to emulate in the guest. | ` string ` | ` null ` | no |
18
19
| disks | List of objects representing additional disks. | <pre >list(object({<br > type = string<br > storage = string<br > size = string<br > }))</pre > | ` null ` | no |
19
20
| full_clone | Create a full clone; if false, a linked clone will be created (ignored when pxe_boot is true). | ` bool ` | ` null ` | no |
20
21
| hagroup | The HA group identifier the resource belongs to. | ` string ` | ` null ` | no |
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ resource "proxmox_vm_qemu" "proxmox_instance" {
19
19
hastate = var. hastate
20
20
hagroup = var. hagroup
21
21
22
+ cpu = var. cpu
22
23
cores = var. cores
23
24
sockets = var. sockets
24
25
memory = var. memory
Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ variable "hagroup" {
64
64
type = string
65
65
}
66
66
67
+ variable "cpu" {
68
+ default = null
69
+ description = " The type of CPU to emulate in the guest."
70
+ type = string
71
+ }
72
+
67
73
variable "cores" {
68
74
description = " Number of cores to allocate."
69
75
type = number
You can’t perform that action at this time.
0 commit comments