Skip to content

Commit 675f295

Browse files
authored
Expose ability to configure guest CPU (#39)
1 parent 73f8ad7 commit 675f295

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Expose ability to configure guest CPU.
13+
1014
## [1.7.0] - 2023-04-03
1115

1216
### Changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This module is an opinionated take on creating a VM in Proxmox; not all possible
1515
| clone | Name of the template to clone (ignored when pxe_boot is true). | `string` | `null` | no |
1616
| cloudinit_cdrom_storage | Name of the storage to create the cloud-init image in (e.g. local-lvm). | `string` | `null` | no |
1717
| cores | Number of cores to allocate. | `number` | n/a | yes |
18+
| cpu | The type of CPU to emulate in the guest. | `string` | `null` | no |
1819
| disks | List of objects representing additional disks. | <pre>list(object({<br> type = string<br> storage = string<br> size = string<br> }))</pre> | `null` | no |
1920
| full_clone | Create a full clone; if false, a linked clone will be created (ignored when pxe_boot is true). | `bool` | `null` | no |
2021
| hagroup | The HA group identifier the resource belongs to. | `string` | `null` | no |

instance.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ resource "proxmox_vm_qemu" "proxmox_instance" {
1919
hastate = var.hastate
2020
hagroup = var.hagroup
2121

22+
cpu = var.cpu
2223
cores = var.cores
2324
sockets = var.sockets
2425
memory = var.memory

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ variable "hagroup" {
6464
type = string
6565
}
6666

67+
variable "cpu" {
68+
default = null
69+
description = "The type of CPU to emulate in the guest."
70+
type = string
71+
}
72+
6773
variable "cores" {
6874
description = "Number of cores to allocate."
6975
type = number

0 commit comments

Comments
 (0)