-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathvariables.pkr.hcl
More file actions
141 lines (116 loc) · 3.86 KB
/
Copy pathvariables.pkr.hcl
File metadata and controls
141 lines (116 loc) · 3.86 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# © Broadcom. All Rights Reserved.
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
# SPDX-License-Identifier: MPL-2.0
variable "vm_name" {
description = "The name of the virtual machine."
type = string
}
variable "headless" {
description = "Option to run the virtual machine without the hypervisor GUI console."
type = bool
default = false
}
variable "build_username" {
description = "The username for the user account for the build process."
type = string
default = "packer"
}
variable "build_password" {
description = "The password for the user account for the build process."
type = string
default = "packer"
sensitive = true
}
variable "boot_wait" {
description = "The time to wait after booting the initial virtual machine before sending the boot command."
type = string
default = "10s"
}
variable "ssh_timeout" {
description = "The maximum time to wait for SSH to become available on the guest operating system."
type = string
default = "10000s"
}
variable "boot_command" {
description = "A list of boot commands to send to the virtual machine console during boot sequence."
type = list(string)
default = ["<esc><wait>", "<esc><wait>", "<enter><wait>", "/install/vmlinuz<wait>", " initrd=/install/initrd.gz", " auto-install/enable=true", " debconf/priority=critical", " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>", " -- <wait>", "<enter><wait>"]
}
variable "data_directory" {
description = "The directory path for the kickstart files."
type = string
default = "data/debian"
}
variable "disk_size" {
description = "The size of the virtual disk in megabytes."
type = number
default = 20480
}
variable "cdrom_adapter_type" {
description = "The adapter type for the CD-ROM drive. Must be 'sata' for ARM64 builds."
type = string
default = "sata"
}
variable "disk_adapter_type" {
description = "The adapter type for the virtual disk. Must be 'sata' for ARM64 builds."
type = string
default = "sata"
}
variable "network_adapter_type" {
description = "The network adapter type for the virtual machine."
type = string
default = "e1000"
}
variable "guest_os_type" {
description = "The guest operating system type identifier for the virtual machine."
type = string
default = "debian-64"
}
variable "version" {
description = "The virtual machine hardware version compatibility level."
type = number
default = 21
}
variable "iso_url" {
description = "The URL or local path to the ISO file for the operating system installation."
type = string
}
variable "iso_checksum" {
description = "The checksum of the ISO file to verify integrity after the download."
type = string
}
variable "cpus" {
description = "The number of virtual CPUs to assign to the virtual machine."
type = number
default = 2
}
variable "memory" {
description = "The amount of memory in megabytes to assign to the virtual machine."
type = number
default = 2048
}
variable "vmx_data" {
description = "The additional data to add to the virtual machine configuration file."
type = map(string)
default = {}
}
variable "vm_guest_os_language" {
description = "The language setting for the guest operating system installation."
type = string
default = "en"
}
variable "vm_guest_os_keyboard" {
description = "The keyboard layout for the guest operating system."
type = string
default = "us"
}
variable "vm_guest_os_timezone" {
description = "The timezone setting for the guest operating system."
type = string
default = "UTC"
}
variable "output_directory" {
description = "The output directory for the virtual machine."
type = string
default = null
}