-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsource.vmware-vmx.pkr.hcl
38 lines (28 loc) · 1.2 KB
/
source.vmware-vmx.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
# Note: we don't have cpu/memory/disk/preseed content here as this using a pre-existing
# vmx file to continue a build process so none of those options are valid.
source "vmware-vmx" "full" {
vm_name = var.name
headless = "${var.headless}"
source_path = "${var.output_directory}/${local.vmware_vmx_source}-preflight/${var.name}-preflight.vmx"
output_directory = "${var.output_directory}/${var.name}"
shutdown_command = local.shutdown_command
ssh_password = var.password
ssh_pty = false
ssh_username = var.username
ssh_wait_timeout = "10000s"
# Note: add remove options here for remote vsphere build
# Docs: https://www.packer.io/docs/builders/vmware/vmx
}
source "vmware-vmx" "update" {
vm_name = var.name
headless = "${var.headless}"
source_path = "${var.output_directory}/${var.name}/${var.name}.vmx"
output_directory = "${var.output_directory}/${var.name}-update"
shutdown_command = local.shutdown_command
ssh_password = var.password
ssh_pty = false
ssh_username = var.username
ssh_wait_timeout = "10000s"
# Note: add remove options here for remote vsphere build
# Docs: https://www.packer.io/docs/builders/vmware/vmx
}