-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables-general.pkr.hcl
56 lines (47 loc) · 1.59 KB
/
variables-general.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
variable "build_name" {
description = "The name of the build."
type = string
default = "ubuntu"
}
variable "node" {
description = "The node in the Proxmox cluster to create the template."
type = string
}
variable "vm_id" {
description = "The ID used to reference the virtual machine. This will also be the ID of the final template. If not given, the next free ID on the node will be used."
type = number
}
variable "vm_name" {
description = "Name of the virtual machine during creation. If not given, a isotime will be used."
type = string
}
variable "pool" {
description = "Name of resource pool to create virtual machine in."
type = string
default = "Template"
}
variable "bios" {
description = "The BIOS to use, options are seabios or ovmf for UEFI. The default is seabios."
type = string
default = ""
}
variable "onboot" {
description = "Specifies whether a VM will be started during system bootup. Defaults to true."
type = bool
default = true
}
variable "task_timeout" {
description = "The timeout for Promox API operations, e.g. clones. Defaults to 1 minute."
type = string
default = "20m"
}
variable "template_description" {
description = "Description of the template, visible in the Proxmox interface."
type = string
default = "Ubuntu 22.04 template generated by Packer on {{ isotime `2006-01-02` }}."
}
variable "unmount_iso" {
description = "If true, remove the mounted ISO from the template after finishing. Defaults to false."
type = bool
default = true
}