generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
/
variables.pkr.hcl
110 lines (88 loc) · 1.82 KB
/
variables.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
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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "boot_command" {
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 "build_username" {
type = string
default = "vagrant"
}
variable "build_password" {
type = string
default = "vagrant"
}
variable "cdrom_adapter_type" {
type = string
default = "sata"
}
variable "data_directory" {
type = string
default = "null"
}
variable "disk_size" {
type = number
default = 65536
}
variable "disk_adapter_type" {
type = string
default = "lsilogic"
}
variable "guest_os_type" {
type = string
default = null
}
variable "hardware_version" {
type = number
default = 19 # Refer to VMware versions https://kb.vmware.com/s/article/1003746
}
variable "iso_checksum" {
type = string
default = null
}
variable "iso_url" {
type = string
default = null
}
variable "memory" {
type = number
default = null
}
variable "network_adapter_type" {
type = string
default = null
}
variable "tools_upload_flavor" {
type = string
default = null
}
variable "tools_upload_path" {
type = string
default = null
}
variable "vm_name" {
type = string
default = "debian"
}
variable "vmx_data" {
type = map(string)
default = {
"cpuid.coresPerSocket" = "2"
}
}
variable "vm_guest_os_language" {
type = string
default = "en"
}
variable "vm_guest_os_keyboard" {
type = string
default = "us"
}
variable "vm_guest_os_timezone" {
type = string
default = "UTC"
}
variable "vm_headless" {
type = bool
default = true
}