Commit Graph

8 Commits

Author SHA1 Message Date
Tyler Bennett
eb7d7a5a67 provide flexibility in packer servers with more then one NIC,
when a packer server has more then one NIC, Packer can often
select the wrong http server using {{ .HTTPIP }}. We extend the
variables file to include an http_server_address which can be set
to the IP address of the correct NIC. This configuration propagates down
to the http_bind_address directive of the builder and the boot_command
entered on the guest VM. Adding 0.0.0.0 as a reasonable default as it
preserves comptability with packers default behavior.

This commit was required to get Packer to build the ubuntu guest
successfully in our environment

Additional Reading:
https://github.com/hashicorp/packer/issues/9973
https://www.packer.io/docs/builders/vmware/vsphere-iso#http-directory-configuration
2021-02-26 18:23:19 -06:00
Chris Long
c91b48e4bc Moving the VMX time settings, reodering JSON files 2021-01-11 17:14:12 -08:00
Jonathan Moss
55aa80294a Updated iso_name & SHA256 2020-09-27 15:27:15 -04:00
Chris Long
37911b150a Remove more references to iso_checksum_type 2020-06-26 16:58:22 -07:00
NemoEht
be0f22417f Update to ubuntu1804_esxi.json with ssh_timeout
Added ssh_timeout of 10000 seconds (166.6667 minutes). This will keep packer from destroying the VM before it's even done with the setup process. The time can be adjusted but this helped me in the setup process.
2020-03-23 20:36:16 -07:00
NemoEht
73b1e29a8f Update ubuntu1804_esxi.json
Updated line 55 to use the variable in the variables.json
2020-03-23 13:40:44 -07:00
ZephrFish
7202a82c83 ssh_wait_time is deprecated
new option is pause_before connecting as previous is deprecated within packer https://packer.io/docs/templates/communicator.html#ssh_timeout

Also time is set to 166m by default so have flipped that to 10m to make it work :-)
2020-03-10 19:58:10 +00:00
Chris Long
4e850a5ee6 Adding final ESXI deployment code 2020-03-09 14:42:58 -07:00