-
Notifications
You must be signed in to change notification settings - Fork 2
/
source.vmware-iso.pkr.hcl
63 lines (47 loc) · 1.55 KB
/
source.vmware-iso.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
source "vmware-iso" "preflight" {
vm_name = "${var.name}-preflight"
headless = "${var.headless}"
guest_os_type = "${var.guest_os_type}"
output_directory = "${var.output_directory}/${var.name}-vmware-iso-preflight"
boot_command = local.boot_command
boot_wait = "6s"
shutdown_command = local.shutdown_command
iso_checksum = local.iso_checksum
iso_urls = local.iso_urls
ssh_username = var.username
ssh_password = var.password
ssh_pty = false
ssh_timeout = "20m"
ssh_handshake_attempts = 100
disk_size = var.disk_size
disk_type_id = var.vmware_disk_type_id
cpus = var.cpus
memory = var.memory
http_content = {
"/meta-data" = ""
"/user-data" = local.cloud_config
}
}
source "vmware-iso" "full" {
vm_name = var.name
headless = "${var.headless}"
output_directory = "${var.output_directory}/${var.name}-vmware-iso-full"
boot_command = local.boot_command
boot_wait = "6s"
shutdown_command = local.shutdown_command
iso_checksum = local.iso_checksum
iso_urls = local.iso_urls
ssh_username = var.username
ssh_password = var.password
ssh_pty = false
ssh_timeout = "20m"
ssh_handshake_attempts = 100
disk_size = var.disk_size
disk_type_id = var.vmware_disk_type_id
cpus = var.cpus
memory = var.memory
http_content = {
"/meta-data" = ""
"/user-data" = local.cloud_config
}
}