github.com/hashicorp/packer@v1.14.3/website/content/partials/packer-plugin-sdk/multistep/commonsteps/ISOConfig.mdx (about)

     1  <!-- Code generated from the comments of the ISOConfig struct in multistep/commonsteps/iso_config.go; DO NOT EDIT MANUALLY -->
     2  
     3  By default, Packer will symlink, download or copy image files to the Packer
     4  cache into a "`hash($iso_url+$iso_checksum).$iso_target_extension`" file.
     5  Packer uses [hashicorp/go-getter](https://github.com/hashicorp/go-getter) in
     6  file mode in order to perform a download.
     7  
     8  go-getter supports the following protocols:
     9  
    10  * Local files
    11  * Git
    12  * Mercurial
    13  * HTTP
    14  * Amazon S3
    15  
    16  Examples:
    17  go-getter can guess the checksum type based on `iso_checksum` length, and it is
    18  also possible to specify the checksum type.
    19  
    20  In JSON:
    21  
    22  ```json
    23    "iso_checksum": "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2",
    24    "iso_url": "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    25  ```
    26  
    27  ```json
    28    "iso_checksum": "file:ubuntu.org/..../ubuntu-14.04.1-server-amd64.iso.sum",
    29    "iso_url": "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    30  ```
    31  
    32  ```json
    33    "iso_checksum": "file://./shasums.txt",
    34    "iso_url": "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    35  ```
    36  
    37  ```json
    38    "iso_checksum": "file:./shasums.txt",
    39    "iso_url": "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    40  ```
    41  
    42  In HCL2:
    43  
    44  ```hcl
    45    iso_checksum = "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2"
    46    iso_url = "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    47  ```
    48  
    49  ```hcl
    50    iso_checksum = "file:ubuntu.org/..../ubuntu-14.04.1-server-amd64.iso.sum"
    51    iso_url = "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    52  ```
    53  
    54  ```hcl
    55    iso_checksum = "file://./shasums.txt"
    56    iso_url = "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    57  ```
    58  
    59  ```hcl
    60    iso_checksum = "file:./shasums.txt",
    61    iso_url = "ubuntu.org/.../ubuntu-14.04.1-server-amd64.iso"
    62  ```
    63  
    64  <!-- End of code generated from the comments of the ISOConfig struct in multistep/commonsteps/iso_config.go; -->