-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.pkr.hcl
62 lines (53 loc) · 1.18 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
variable "appliance_version" {
type = string
default = ""
}
variable "ssh_username" {
type = string
default = "foundry"
}
variable "ssh_password" {
type = string
default = "foundry"
}
variable "vsphere_cluster" {
type = string
default = ""
}
variable "vsphere_datastore" {
type = string
default = ""
}
variable "vsphere_password" {
type = string
default = ""
sensitive = true
}
variable "vcenter_server" {
type = string
default = ""
}
variable "vsphere_username" {
type = string
default = ""
}
variable "vsphere_network" {
type = string
default = "VM Network"
}
locals {
boot_command = [
"e<wait>",
"<down><down><down>",
"<end><bs><bs><bs><bs><wait>",
"autoinstall ds=nocloud-net\\;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ---<wait>",
"<f10><wait>"
]
cpus = 2
disk_size = 40000
iso_url = "https://releases.ubuntu.com/jammy/ubuntu-22.04.4-live-server-amd64.iso"
iso_checksum = "sha256:45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2"
memory = 8192
shutdown_command = "echo '${var.ssh_password}'|sudo -S shutdown -P now"
video_memory = 32
}