Merge pull request #10140 from hashicorp/azr-add-vmware-vmx-example

HCL2: add vmware vmx example
This commit is contained in:
Megan Marsh 2020-10-22 10:22:07 -07:00 committed by GitHub
commit 9a869f50bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -58,6 +58,11 @@ EOF
boot_command = local.ubuntu_1604_boot_command
}
source "source.vmware-vmx.base-ubuntu-amd64" {
name = "16.04"
source_path = "vmware_iso_ubuntu_1604_amd64/packer-base-ubuntu-amd64.vmx"
}
source "source.vmware-iso.base-ubuntu-amd64" {
name = "18.04"
iso_url = local.iso_url_ubuntu_1804

View File

@ -0,0 +1,16 @@
source "vmware-vmx" "base-ubuntu-amd64" {
headless = var.headless
boot_wait = "10s"
http_directory = local.http_directory
shutdown_command = "echo 'vagrant' | sudo -S shutdown -P now"
ssh_password = "vagrant"
ssh_port = 22
ssh_timeout = "10000s"
ssh_username = "vagrant"
tools_upload_flavor = "linux"
vmx_data = {
"cpuid.coresPerSocket" = "1"
"ethernet0.pciSlotNumber" = "32"
}
vmx_remove_ethernet_interfaces = true
}

View File

@ -1,5 +1,5 @@
variable "ubuntu_1604_version" {
default = "16.04.6"
default = "16.04.7"
}
locals {