mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-26 19:41:06 -05:00
* Drop the iso_checksum_type & iso_checksum_url fields
In favor of simply using iso_checksum that will know what to do.
* fix after master merge
* Update builder_test.go
* Update builder_test.go
* Update builder_test.go
* Update builder_test.go
* Update builder_test.go
* remove checksum lowercasing tests
* Update builder_test.go
* Update builder_test.go
* better docs
* Update builder_test.go
* even better docs
* Update config.go
* Update builder_test.go
* Update step_create_vmx_test.go
* make generate
* better docs
* fix imports
* up tests
* Update _ISOConfig-required.html.md
* Update builder_test.go
* don't use sha1.Sum("none") as a caching path
* Update builder_test.go
* better docs
* Update iso_config_test.go
remove ISOChecksumType/ISOChecksumURL references
* Update step_download_test.go
* add iso_checksum_url and iso_checksum_type fixers + tests
* add concrete examples of checksum values
* add examples of checksumming from local file
* update go-getter dep
* up deps
* use new go-getter version
* up ESX5Driver.VerifyChecksum: use go-getter's checksumming
* ISOConfig.Prepare: get checksum there in case we need it as a string in ESX5Driver.VerifyChecksum
* Update iso_config.go
* get go-getter from v2 branch
* Update driver_esx5.go
add more comments
* Update driver_esx5.go
* show better error message when the checksum is invalid
* Update builder_test.go
put in a valid checksum to fix tests, checksum is md5("packer")
* Update builder_test.go
test invalid and valid checksum
* more test updating
* fix default md5 string to be a valid md5
* TestChecksumFileNameMixedCaseBug: use 'file:' prefix for file checksumming
* Update iso_config_test.go
* Update iso_config_test.go
* Update builder_test.go
* Update builder_test.go
* Update builder_test.go
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update go.mod
* Update go.mod
* Update CHANGELOG.md
26 lines
No EOL
1.4 KiB
Text
26 lines
No EOL
1.4 KiB
Text
<!-- Code generated from the comments of the ISOConfig struct in common/iso_config.go; DO NOT EDIT MANUALLY -->
|
|
|
|
- `iso_checksum` (string) - The checksum for the ISO file or virtual hard drive file. The type of
|
|
the checksum is specified within the checksum field as a prefix, ex:
|
|
"md5:{$checksum}". The type of the checksum can also be omitted and
|
|
Packer will try to infer it based on string length. Valid values are
|
|
"none", "{$checksum}", "md5:{$checksum}", "sha1:{$checksum}",
|
|
"sha256:{$checksum}", "sha512:{$checksum}" or "file:{$path}". Here is a
|
|
list of valid checksum values:
|
|
* md5:090992ba9fd140077b0661cb75f7ce13
|
|
* 090992ba9fd140077b0661cb75f7ce13
|
|
* sha1:ebfb681885ddf1234c18094a45bbeafd91467911
|
|
* ebfb681885ddf1234c18094a45bbeafd91467911
|
|
* sha256:ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
|
|
* ed363350696a726b7932db864dda019bd2017365c9e299627830f06954643f93
|
|
* file:http://releases.ubuntu.com/20.04/MD5SUMS
|
|
* file:file://./local/path/file.sum
|
|
* file:./local/path/file.sum
|
|
* none
|
|
Although the checksum will not be verified when it is set to "none",
|
|
this is not recommended since these files can be very large and
|
|
corruption does happen from time to time.
|
|
|
|
- `iso_url` (string) - A URL to the ISO containing the installation image or virtual hard drive
|
|
(VHD or VHDX) file to clone.
|
|
|