Commit Graph

4406 Commits

Author SHA1 Message Date
Wilken Rivera 56f6a976de
integrations/secretsmanager: Add support for plaintext, non key/pair, secrets (#9773) 2020-08-17 13:41:21 +02:00
Megan Marsh d486459a00
Merge pull request #9764 from hashicorp/hcl2_provisioner_override
Add override provisioner's option for HCL2
2020-08-14 09:49:34 -07:00
Wilken Rivera 89d57b8635
post-processor/googlecompute-import: Update documentation (#9767) 2020-08-14 12:04:44 +02:00
Megan Marsh 086141f9a9
add an hcl example to the docs pipeline (#9763) 2020-08-14 11:42:06 +02:00
Megan Marsh 8b4993e44c
fix docs for kms key ids (#9766) 2020-08-14 11:35:35 +02:00
sylviamoss 39a8dee4ea add tests and update override example 2020-08-14 11:22:51 +02:00
sylviamoss 62c3743890 implemet override provisioner's option for hcl2 2020-08-13 19:27:04 +02:00
Megan Marsh acba3ea3e7
Document network path (#9762) 2020-08-13 11:26:40 -04:00
Sylvia Moss a2277e312f
add inspec provisioner hcl2 examples (#9761) 2020-08-13 11:23:56 -04:00
Megan Marsh 29b08e54bc
Merge pull request #9760 from hashicorp/pipeline_with_hcl_docs
add hcl docs to pipeline build docs
2020-08-13 07:19:14 -07:00
Megan Marsh 321aa090df
Merge pull request #9746 from jsmcnair/f-vault-function
Add vault function for HCL2 and documentation
2020-08-13 07:18:28 -07:00
Megan Marsh 2a80bff8c2
Update website/pages/guides/packer-on-cicd/pipelineing-builds.mdx
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-08-13 07:05:26 -07:00
Megan Marsh b5b28c55fb
update powershell provisioner docs to include HCL examples (#9759) 2020-08-13 13:45:30 +02:00
Megan Marsh 87b290ae67 add hcl docs to pipeline build docs 2020-08-12 15:24:47 -07:00
jsmcnair 78c280b1b7 Use common funcs / fix panic / clarify docs 2020-08-12 22:34:13 +01:00
Megan Marsh 54469c4728
Add all of the custom AWS template engines to GeneratedData for use b… (#9751) 2020-08-12 10:43:15 +02:00
Wilken Rivera 9d453624ff
Merge pull request #9752 from hashicorp/ansible_local_docs
ansible-local hcl docs
2020-08-11 21:11:05 -04:00
Wilken Rivera 956651e711
Merge pull request #9753 from hashicorp/breakpoint_hcl_docs
hcl example for breakpoint provisioner
2020-08-11 21:07:38 -04:00
Jean-Francois Panisset 6f8a909cef Remove more examples of deprecated iso_checksum_type in docs
Follow up to remove_iso_checksum_type

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
2020-08-11 17:29:21 -07:00
Megan Marsh 0aa4d7117d hcl example for breakpoint provisioner 2020-08-11 16:28:02 -07:00
Megan Marsh 0a3ff3b190 ansible-local hcl docs 2020-08-11 16:20:56 -07:00
Javier Ruiz Jiménez 13d1b50d8a
Remove double-quoted in variable type (#9747)
The type parameter in a variable definition can't be double-quoted as it is a primitive type keyword or a complex type constructor
2020-08-11 16:33:02 +02:00
Megan Marsh 2ffbe8240f
document that interactive login is not an option for gov clouds (#9744) 2020-08-11 15:55:24 +02:00
jsmcnair 8666ebceca Fix broken header 2020-08-11 09:48:00 +01:00
jsmcnair 33e3f62ff7 Add vault function for HCL2 and document 2020-08-11 09:18:15 +01:00
Megan Marsh 027eb40a97
soften the declaration that vmware and virtualbox require bare metal. (#9745) 2020-08-10 20:09:57 -04:00
Megan Marsh 676c3a21bf
Merge pull request #9743 from hashicorp/document_9168
add docs note about quoting string variables on the command line
2020-08-10 14:51:56 -07:00
Megan Marsh 4c3912bfdc add docs note about quoting string variables on the command line 2020-08-10 14:07:20 -07:00
Megan Marsh c3ba818893
Merge pull request #9741 from hashicorp/on_error_docs
add docs to make it explicit that on-error=abort etc are only relevan…
2020-08-10 13:57:34 -07:00
Megan Marsh 5f119a5464 document vsphere role permissions needed to run post-processors. 2020-08-10 11:48:18 -07:00
Megan Marsh 0f399ace57 add docs to make it explicit that on-error=abort etc are only relevant to provisioners, not post-processors 2020-08-10 11:10:37 -07:00
Megan Marsh c0757a1bba
Merge pull request #9738 from hashicorp/community_pp
Add community supported post-processors
2020-08-10 09:24:04 -07:00
Megan Marsh d3f48622a3
Merge pull request #9726 from acornies/feature/salt-masterless-formulas
Feature: salt-masterless formulas
2020-08-10 09:19:49 -07:00
sylviamoss a447d151bb add community supported post-processor 2020-08-10 14:09:58 +02:00
Megan Marsh d826711e7a
File provisioner docs (#9735) 2020-08-10 13:15:27 +02:00
Andrew Cornies a704e1b6b1 Updated formula regexp to support ?ref= syntax.
Added formulas docs for salt-masterless provisioner

Signed-off-by: Andrew Cornies <acornies@gmail.com>
2020-08-07 18:38:41 -04:00
Megan Marsh b72a75278a
Merge pull request #9737 from hashicorp/document_5049
add microsoft daemon docs to hyperv docs
2020-08-07 15:08:03 -07:00
Wilken Rivera ae23f891e1
post-processor/googlecompute-export: Update documentation (#9727)
* Add markdown generator to post-processor config
* Add HCL2 example
2020-08-07 16:34:38 -04:00
Megan Marsh 69d951d34f add microsoft daemon docs to hyperv docs 2020-08-07 12:41:59 -07:00
Megan Marsh fc8346bd27
Merge pull request #9731 from hashicorp/manifast_doc_note
Add keep_input_artifact note to the manifest post-processor
2020-08-07 09:12:41 -07:00
sylviamoss ddd85da1a6 add keep_input_artifact note 2020-08-07 09:00:34 +02:00
Megan Marsh 961d9b4f08 document issue with ansible macros 2020-08-06 14:00:26 -07:00
Megan Marsh 04d7a10aa0
Merge pull request #9714 from hashicorp/fix_9688
provide more helpful error message than the one returned by the clien…
2020-08-06 10:54:21 -07:00
Sylvia Moss 78ce1dbde9
Add manifest hcl2 examples (#9721) 2020-08-06 13:43:35 -04:00
Megan Marsh 4964c54f60 update docs to state resource id must be fully qualified 2020-08-06 10:41:18 -07:00
Megan Marsh 25f2ec48d3
add network_name option to vmware builder to make it match the network option on the vsphere builder, so vmware users needn't update vmx data just for the network name (#9718) 2020-08-06 13:19:55 +02:00
Megan Marsh 09852b89a7
make note about deprecation warning (#9717) 2020-08-06 13:14:30 +02:00
Megan Marsh de5c5873a2
Merge pull request #9715 from hashicorp/checksum_pp_hcl_example
Update checksum post-processor docs with hcl2 example
2020-08-05 11:07:21 -07:00
Megan Marsh 3f61498704
Merge pull request #9704 from ntoofu/f-vsphere-export-permission
Add `directory_permission` config option to `vsphere` builder
2020-08-05 10:57:30 -07:00
sylviamoss fd683daa22 update checksum post-processor docs 2020-08-05 19:46:17 +02:00
Megan Marsh b52143f528 update docs for command and make sure they get generated properly so they appear in the docs 2020-08-05 10:30:16 -07:00
Sylvia Moss dcacf7ad4c
Add vSphere HCL examples to the docs (#9674) 2020-08-05 19:23:52 +02:00
ntoofu a53e81d9a2 Make docs more clear
https://github.com/hashicorp/packer/pull/9704#discussion_r465393240
2020-08-06 01:11:02 +09:00
Megan Marsh 825deef43d
Merge pull request #9665 from hashicorp/vsphere_clone_customization
Add step to customize cloned VM
2020-08-05 08:30:31 -07:00
ntoofu 5493285f65 Add `directory_permission` config option to `vsphere` builder 2020-08-02 15:02:31 +09:00
Jean-Francois Panisset 3ce148110c iso_checksum_type was removed from 1.6.0, checksum type is now
inferred from iso_checksum string length or prefix.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
2020-08-01 21:02:31 -07:00
Megan Marsh 3ff3d9fedd
Merge pull request #9689 from hashicorp/shell_docs
add hcl examples to shell provisioner docs
2020-07-31 12:51:01 -07:00
Megan Marsh 767e2fe06b update docs for shell provisioner to include hcl examples 2020-07-31 11:28:14 -07:00
Megan Marsh cce424fdab
Merge pull request #9682 from hashicorp/qemu_hcl_examples
Add qemu hcl examples
2020-07-31 10:20:09 -07:00
Megan Marsh 7967b788d2
Merge pull request #9683 from hashicorp/vagrant_hcl2_example
Add Vagrant builder HCL2 example
2020-07-31 10:15:28 -07:00
Megan Marsh 6698be6008 fix typo in hcl config 2020-07-31 10:08:10 -07:00
sylviamoss f853f07832 add vagrant builder hcl example 2020-07-31 17:50:36 +02:00
sylviamoss fc2e94554a add qemu hcl examples 2020-07-31 17:32:08 +02:00
Megan Marsh fe7f529862 update ansible provisoner docs to include hcl 2020-07-30 17:01:54 -07:00
Megan Marsh 37f21dde5c add build sources to hcl examples 2020-07-30 15:07:15 -07:00
Megan Marsh 6248da58c5 Update website/pages/docs/builders/docker.mdx
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-30 15:05:46 -07:00
Megan Marsh 6927a9b10d add hcl2 examples for docker builder docs 2020-07-30 15:05:46 -07:00
packer-ci 214bef3697 cut version 1.6.1 2020-07-30 20:04:33 +00:00
Megan Marsh 5b26f1b56d
add vsphere postprocessor example in json and hcl (#9669)
* add vsphere postprocessor example in json and hcl

* Update website/pages/docs/post-processors/vsphere.mdx

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-30 10:47:42 +02:00
Li Kexian 94a32dc282
tencentcloud cvm use CLOUD_PREMIUM disk by default (#9663) 2020-07-29 15:10:00 +02:00
sylviamoss c6e9bde97b add step customize and docs 2020-07-29 15:07:44 +02:00
Megan Marsh b40490c3c1
Merge pull request #9610 from chilversc/winrm-via-iap-tunnel
Support using WinRM over an IAP tunnel
2020-07-28 14:27:43 -07:00
Megan Marsh 3b297f4937
Merge pull request #9649 from hashicorp/clean_up_vsphere_ui
Clean up vsphere ui
2020-07-28 10:45:47 -07:00
Adrien Delorme c7b35dd6bc
HCL2: add post-processors block to run multiple post-processor after a build (#9638)
added `post-processors` block to run chained post-processors after a build.
Before this, defining multiple `post-processor` blocks after
provisioning steps would run them sequentially, now doing this makes them start
from the build's artifact. To queue post-processors you now have to define them
in a `post-processors` block.

This is a breaking change.
2020-07-28 10:02:37 +02:00
Reto Kupferschmid 943cb1275d
fix missing comma (#9652) 2020-07-27 11:21:40 +02:00
Megan Marsh 54067fc091
update docs to include vpc permissions (#9648) 2020-07-27 10:18:06 +02:00
Megan Marsh 395a0c472e improve postprocessor stdout 2020-07-25 08:24:21 -07:00
Megan Marsh a687d6fe12
ci/tech-debt: Fix vmware acceptance tests (#9636)
* add kex algorithm option to ssh config

* regenerate code

* This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts:
1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed.
2) It modifies logic in reading and defaulting hardware config values, which was crashing.
3) It adds a new acceptance test with a preseed file to test loading from an http directory.
2020-07-23 09:40:57 +02:00
Adrien Delorme 125178d943
core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622)
* core: Decode when in HCL2 decoding mode; reset the whole struct before preparing it.
* HCL2: add path variables + docs & tests

Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-07-23 09:25:07 +02:00
Megan Marsh ec5a2b87af
Merge pull request #9619 from piggona/master
builder/tencent: add key source_image_name to get source image by name when creating image.#9548
2020-07-22 10:29:30 -07:00
Chris Chilvers 67494ff45b update IAP docs to include WinRM 2020-07-22 17:34:45 +01:00
Megan Marsh 6e7618ca1a
Merge pull request #9608 from hashicorp/amazon-inline-docs-hcl
add tabs to generated docs from access_config and run_config structs
2020-07-21 16:34:49 -07:00
Megan Marsh eb27023e4c
add HCL and artifice examples to vagrant postprocessor docs (#9606) 2020-07-21 11:30:11 +02:00
Megan Marsh 91775b8875
update docstring (#9617) 2020-07-21 11:28:01 +02:00
piggona 485b2b3bd5 run make generate 2020-07-21 11:03:50 +08:00
Megan Marsh 6077a9174a
Merge pull request #9607 from hashicorp/amazon_hcl_docs
Amazon hcl docs
2020-07-20 18:11:51 -07:00
Megan Marsh 3897865f3f
Update website/pages/docs/builders/amazon/ebs.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 18:02:31 -07:00
Megan Marsh 6bb23eeb0e
Update website/pages/docs/builders/amazon/index.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 17:59:22 -07:00
Megan Marsh f389f1eebc
Update website/pages/docs/builders/amazon/chroot.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 17:58:05 -07:00
Megan Marsh faa7bc0dc1
Update website/pages/docs/builders/amazon/ebs.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 17:57:52 -07:00
Megan Marsh 4a8f6c118e
Update website/pages/docs/builders/amazon/chroot.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 17:57:11 -07:00
Megan Marsh e811967a72
Update website/pages/docs/builders/amazon/chroot.mdx
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 17:56:41 -07:00
Megan Marsh 36da3374f3
Docs: Add HCL examples to docker-import postprocessor docs (#9604)
* add hcl to docker-import postprocessor docs

* Update website/pages/docs/post-processors/docker-import.mdx

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-20 16:57:48 +02:00
Megan Marsh 6439ebff22
docs: Add HCL2 code examples to shell-local provisioner and post-processor. (#9602)
* get start on shell-local postprocessor

* HCL2 tabs for shell-local pp

* shell local provisoner hcl examples
2020-07-20 16:55:56 +02:00
Adrien Delorme 810f161d22 builder/amazon/common/block_device.go: replace tabs with words 2020-07-20 16:34:13 +02:00
Adrien Delorme 966b17d2b5 builder/amazon/common/access_config.go: replace tabs with words 2020-07-20 16:31:23 +02:00
Adrien Delorme 5c4901c2c2 builder/amazon/common/run_config.go: replace tabs with words 2020-07-20 16:28:14 +02:00
Adrien Delorme 1455a29f2b remove tabs for security_group_filter too 2020-07-20 16:24:47 +02:00
Adrien Delorme 191094edcc better `disable_stop_instance` docs 2020-07-20 16:21:43 +02:00
Adrien Delorme fd6be7f279 better/simpler `pause_before_connecting` example 2020-07-20 16:03:40 +02:00
Megan Marsh 530f5e3f63 more additions to partials 2020-07-17 15:52:11 -07:00
Megan Marsh f245ff4e34 add hcl example for session manager 2020-07-17 15:28:33 -07:00
Megan Marsh a1651977b3 add tabs to generated docs from access_config and run_config structs 2020-07-17 15:10:55 -07:00
Megan Marsh 19089bd074 upate standalone docs examples in amazon index file 2020-07-17 13:59:51 -07:00
Megan Marsh 51bc7da964 add hcl examples to all standalone code examples in the amazon-chroot page 2020-07-17 13:32:09 -07:00
Megan Marsh 0bb4bf92da validate and hcl examples to all standalone examples in the EBS docs 2020-07-17 12:59:27 -07:00
Megan Marsh 0883e185a2
Merge pull request #9594 from GennadySpb/yndx-image-min-disk-size
yandex: Add new property 'min_disk_size' of built image
2020-07-17 09:31:48 -07:00
Megan Marsh e6130afce6
Merge pull request #9601 from GennadySpb/yndx-import-pp-url-input
yandex-import: support work with URL from yandex-export pp
2020-07-17 09:11:25 -07:00
Megan Marsh 9f34241b5c
Merge pull request #9597 from romantomjak/multiqueue-net-option
builder/proxmox: add support for multiple NIC packet queues
2020-07-17 09:07:04 -07:00
Gennady Lipenkov 29a6687475 Separate workflow for file on disk and prepared URL 2020-07-17 01:09:49 +03:00
Gennady Lipenkov 5c8186d08c Tiny update yandex-export PP doc 2020-07-17 00:58:19 +03:00
Roman Tomjak b0d8f69bda
tweak docs 2020-07-16 18:03:46 +01:00
Roman Tomjak adf1e29459
update docs 2020-07-16 17:36:18 +01:00
Gennady Lipenkov 03a0bf26f2 Rename config key name 2020-07-16 17:29:45 +03:00
Gennady Lipenkov 9c565a97c0 Add new property 'min_disk_size' of built image 2020-07-16 17:10:22 +03:00
Megan Marsh c0270c9f19
Merge pull request #9587 from romantomjak/disable-kvm-flag
Add option to disable KVM hardware virtualization in proxmox builder
2020-07-15 15:23:09 -07:00
Roman Tomjak ebdf1c3d53
update proxmox docs to include disable_kvm flag 2020-07-15 18:51:36 +01:00
Megan Marsh 8bb2cb44c0 rename launch timeout to launch wait 2020-07-15 10:24:55 -07:00
Megan Marsh 6e9eaa1edd generate code 2020-07-15 10:20:50 -07:00
Megan Marsh cf5537d5d2
Merge pull request #9565 from mk0x9/docker/builder-add-runner-params
builder/docker: runner support for --cap-add, --cap-drop, --tmpfs, --device
2020-07-15 10:16:13 -07:00
Megan Marsh cf0646b2ab
Merge pull request #9586 from jl2501/patch-1
Update fix.mdx
2020-07-15 09:59:05 -07:00
jl2501 5c3b747fea
Update fix.mdx
trivially minor typo: omission of "out" when referring to "standard out"
2020-07-15 12:39:43 -04:00
Michael Kuryshev 37d0f48599 builder/docker: reference to docker docs regarding capabilities 2020-07-15 03:04:13 +02:00
Megan Marsh a414e7cdb9 convert relative to absolute path in prepare 2020-07-14 15:59:53 -07:00
Michael Kuryshev 6e77d9d3a9 builder/docker: runner support for --device 2020-07-14 10:37:44 -07:00
Michael Kuryshev 791a86c45e builder/docker: runner support for --cap-add, --cap-drop, --tmpfs 2020-07-14 10:34:10 -07:00
Megan Marsh aa4933c28a
Merge pull request #9574 from jhawk28/vsphere_usb_controllers
(vsphere) add ability to add a xhci/usb3 controller
2020-07-14 10:09:33 -07:00
Sylvia Moss 3a0dfa1259
add option to destroy vm after deploy to content library (#9569) 2020-07-14 10:07:20 +02:00
Joshua Foster b0fa05704a change usb controllers to a list. add ability to set as a usb3
Closes #8874
2020-07-13 20:54:46 -04:00
Jonathan Neal d8b67f8520
📌 Hard Pin Website Dependencies (#9543)
* Update and pin dependencies
* Update NextJS Scripts
* npm run lint
* npm run format
* docs generator: indent docs by two and make spacing better

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-13 12:33:16 +02:00
Roger Hu 28f8241a05 update generated files 2020-07-10 16:58:06 -07:00
Moss 921078ccc0 add force_bios_setup configuration option 2020-07-10 12:30:22 +02:00
jhawk28 ae5156a70d
add ability to define multiple disk controllers (#9519) 2020-07-10 12:25:46 +02:00
Sylvia Moss 9c1409dbba
Add content_library_destination to import VM template to a Content Library (#9551) 2020-07-10 11:01:10 +02:00
Megan Marsh e1e37ad025
Merge pull request #9555 from yandex-cloud/yandex-export-templating
yandex-export: templating
2020-07-09 15:50:04 -07:00
Megan Marsh c5d34f3f7b add note about versioning to vsphere builder docs 2020-07-09 14:46:35 -07:00
Gennady Lipenkov d83d2b0273 Update documentation 2020-07-09 17:43:11 +03:00
GennadySpb 22af3f2fd0 Update website/pages/docs/post-processors/yandex-export.mdx
Update doc example

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-09 16:21:21 +03:00
Gennady Lipenkov b02401c41b Update doc and example. 2020-07-09 16:21:21 +03:00
GennadySpb 919b54f4f4
yandex-export: tiny improvements (#9554) 2020-07-09 10:46:51 +02:00
Megan Marsh d5c40fb0a2
Merge pull request #9550 from hashicorp/unmaintained-plugins-note
Add note for unmaintained community-supported plugins
2020-07-08 16:46:36 -07:00
Gennady Lipenkov e5a4155378 Update doc 2020-07-09 00:24:53 +03:00
Gennady Lipenkov 5b8911ee7d remove angle brackets
fix documentation build process
2020-07-08 23:13:14 +03:00
Gennady Lipenkov 64cda51bff Image name not required attr 2020-07-08 23:01:25 +03:00
Gennady Lipenkov 32b77f3b80 Update doc pages 2020-07-08 22:54:20 +03:00
Gennady Lipenkov cc1605fe94 Add init doc 2020-07-08 22:01:52 +03:00
Wilken Rivera 652d2a4e9e Add note for unmaintained community-supported plugins
This change borrowed from Terraform's [archived provider
documentation](https://www.terraform.io/docs/internals/archiving.html)
adds a documentation partial that can be applied to any provisioner
plugin that is not actively maintained by Packer or the community. A
call to action for anyone interested in supporting the plugin has been
added to the Packer README until a better location is made available.

* Mark the salt-masterless plugin as unmaintained
2020-07-08 07:24:03 -04:00
Wei Cheng e5606d483d
builder/googlecompute: add support for oslogin (#9339)
* feat: add support for oslogin

Signed-off-by: Wei Cheng <calvinpohwc@gmail.com>

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-08 06:30:25 -04:00
Sylvia Moss 268e95364f
Adds vApp properties config and save public ssh key to a vApp property (#9507) 2020-07-08 10:33:45 +02:00
Megan Marsh 673858a63c
Merge pull request #9513 from hashicorp/undocument_ssh_temp_key
Undocument ssh options not used by all builders
2020-07-07 14:26:21 -07:00
Wilken Rivera 892413b7ea
docs/builder/vsphere-iso: Add documentation for BootConfig (#9538)
* docs/builder/vsphere-iso: Add documentation for BootConfig

* Add documenation for http_ip

* Remove duplicate build configuration section
2020-07-07 13:57:51 -04:00
Wilken Rivera eeb6f017bd
Merge pull request #9505 from hashicorp/f-googlecompute-wrap_startup_script-option
builder/googlecompute: Add WrapStartupScriptFile configuration option
2020-07-07 13:17:02 -04:00
Lyle Franklin a4d1afb83a
Add 'cdrom_interface' option to QEMU builder (#9483)
- This option allows the user to select the interface type for the CDROM
  drive, e.g. `virtio-scsi`, rather than the default `virtio`
- Background: Installation of Ubuntu 20.04 on ARM64 fails as it can't mount the
  installation CDROM. While the default `virtio` CDROM fails, setting
  `cdrom_interface: virtio-scsi` with this PR succeeds. Some links:
  - ISO link: http://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/ubuntu-20.04-legacy-server-arm64.iso
  - https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1605407
  - https://superuser.com/a/1376628/230508
2020-07-07 16:22:30 +02:00
Wilken Rivera 4462c0b5ab builder/googlecompute: Add WrapStartupScriptFile configuration option
By default the Google builder will wrap any provided startup script file
in order to track its execution via custom metadata. The wrapper script
can add a bit of complexity to the start script file so a new option is
being added `wrap_startup_script`. This option allows a user to disable
the script wrapping and just let GCE do its own thing when executing a
startup script.
2020-07-07 07:08:09 -04:00
Megan Marsh 93cd7e40bc
add note about ansibles configuration powershell script in our docs (#9526)
* add note about ansibles configuration powershell script in our docs

* Update website/pages/docs/provisioners/ansible.mdx

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-06 15:23:29 -04:00
Megan Marsh 6095fb2a62
Merge pull request #9515 from jhawk28/vsphere_tools_fix
fix vsphere ToolsSyncTime and ToolsUpgradePolicy
2020-07-02 14:19:41 -07:00
Jonathan Neal 4a669e829c Update package-lock.json 2020-07-02 14:25:09 -04:00
Jonathan Neal 01f93d8adb Bump internal hashicorp dependencies 2020-07-02 14:25:09 -04:00
Moss d060cc9ef2 create partials for each ssh key pair related config 2020-07-02 15:18:08 +02:00
Moss 8ea64c5b35 undocument ssh_keypair_name and ssh_agent_auth 2020-07-02 14:55:58 +02:00
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
* in the examples/hcl folder
* add possibility to name singular build.source blocks to differentiate their output and to filter on them
2020-07-02 11:07:59 +02:00
Megan Marsh 445cf12b65
Merge pull request #9489 from ad-m/hyperone-freebsd
builder/hyperone: Allow skip chroot device discovery
2020-07-01 15:48:03 -07:00
Joshua Foster 63f9282f5c fix vshere ToolsSyncTime and ToolsUpgradePolicy 2020-07-01 13:58:50 -04:00
Moss 41edd09d3c undocument temporary_key_pair_name and ssh_private_key_file 2020-07-01 16:33:18 +02:00
Roman Tomjak 212200c88f
Proxmox NIC firewall flag (#9487)
* add test for firewall toggle

* generate hcl config

* send firewall toggle to proxmox

* update docs

* drop the pointer to bool

* use setDeviceParamIfDefined
2020-06-30 11:04:19 +02:00
Kevin Pruett 4f59693be8
Add Algolia indexing to CI 2020-06-29 15:43:35 -04:00
Sylvia Moss 99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables (#9444) 2020-06-29 13:44:57 +02:00
Neil Kidd c9d546a7ea
Fix broken external link (#9496) 2020-06-29 11:02:37 +02:00
Adam Dobrawy 4692cdd55c builder/hyperone: Allow skip chroot device discovery 2020-06-26 15:04:08 +02:00
Adrien Delorme c2975140cf
HCL2: allow to use keep_input_artifact in post processors (#9477)
* HCL2: allow to use keep_input_artifact in post processors
* add basic test
* add docs
2020-06-25 09:36:48 +02:00
mingsheng.su 8a8abdf615
update ucloud-uhost builder (#9466)
* update ucloud-uhost builder, docs and deps

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-06-24 14:31:05 +02:00
Ivo van Geel e54ad3f1fb
Add boot_command support to vsphere-clone builder, including support … (#9397) 2020-06-24 11:14:30 +02:00
Megan Marsh 3476637262 remove old line about windows docker support 2020-06-23 09:54:17 -07:00
Wilken Rivera a8dfb66d6c docs/builder/amazon: Add WinRM unsupported note to Session Manager docs
Closes #9451

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-06-23 07:41:21 -04:00
Adrien Delorme fb337f8867
hcl work on only/except (#9454)
* HCL2: allow to skip a named build block too

* test that excepting a build block works

* test only on a named build block

* add/update docs
2020-06-23 10:53:16 +02:00
Adrien Delorme b2320ca911
HCL2: add singular run_volume_tag block to ebs & ebssurrogate builders (#9457)
close #9280
related to #8889
2020-06-23 10:49:50 +02:00
Megan Marsh a96194081a
Merge pull request #9453 from hashicorp/fix_ssh
Allow users to provide a list of ciphers that they want Packer to support.
2020-06-18 11:58:53 -07:00
Wilken Rivera aa91ef7edf
Merge pull request #9455 from hashicorp/fix_9393
docs/builder/google: Add note about boolean values for compute instance metadata
2020-06-18 13:05:30 -04:00
Megan Marsh a75cf67b5e
Update website/pages/docs/communicators/ssh.mdx
Co-authored-by: Sylvia Moss <moss@hashicorp.com>
2020-06-18 09:25:50 -07:00
Wilken Rivera ce6284f760 docs/builder/google: Add note about boolean values for compute instance metadata
Closes #9393
2020-06-18 09:50:40 -04:00
Megan Marsh 801c827058
create parent dirs of target (#9452) 2020-06-18 10:25:04 +02:00
Megan Marsh 53105f9508 update ssh docs 2020-06-17 16:50:53 -07:00
Megan Marsh 4f77bb0c4a add new ssh_ciphers option 2020-06-17 16:48:23 -07:00
Megan Marsh e951b3731a
Merge pull request #9441 from jhawk28/vsphere_httpip_default
use ip_wait_address range to determine the default for the http server IP
2020-06-17 14:46:04 -07:00
Gennady Lipenkov bc24762e9f Update documentation 2020-06-17 17:02:55 +03:00
Megan Marsh b5b8f2e308
add template option for templating the inventory file lines (#9438) 2020-06-17 11:05:48 +02:00
Megan Marsh ca067475fd
add new doc about pipelineing (#9437) 2020-06-17 10:59:45 +02:00
Megan Marsh 3d7c9cb9c2
make ansible provisioner docs generated from code (#9439) 2020-06-17 10:09:03 +02:00
Joshua Foster aaf9103330 use the ip_wait_address range to determine the default for the http server IP 2020-06-17 01:36:55 -04:00
Megan Marsh a07563c64f fix up typos in comments and regenerate docs.
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-06-16 10:27:30 -07:00
Megan Marsh 4178625afb re-add winrm_no_proxy option. Winrm code needs to be modified in order to read no_proxy env var when client is created rather than when net/http library is instantiated. 2020-06-16 10:27:30 -07:00
Megan Marsh a037e45ac2
Merge pull request #9429 from hashicorp/fix_8814
Add on-error flag option to run error-cleanup-provisioner
2020-06-16 10:00:21 -07:00
Megan Marsh 84b71c221c
Merge pull request #9431 from hashicorp/azr-docs-add-hcl2-basic-examples
add hcl2 basic examples under tabs
2020-06-16 09:43:19 -07:00
Adrien Delorme 01e14e173a more hcl2 basic examples 2020-06-16 17:44:41 +02:00
Adrien Delorme 97848df9e1 add basic HCL2 examples for gcp builder 2020-06-16 17:08:03 +02:00
Adrien Delorme 6513372a01 add basic HCL2 docs for file builder 2020-06-16 17:05:02 +02:00
Adrien Delorme c3f2cc64f7 add basic HCL2 docs for vmware 2020-06-16 17:03:15 +02:00
Adrien Delorme 831c16836a add basic docs for virtualbox 2020-06-16 17:00:31 +02:00
Adrien Delorme 8930c4b913 duplicate space 2020-06-16 16:55:58 +02:00
Adrien Delorme b12bc5d122 add basic aws examples 2020-06-16 16:47:16 +02:00
Jeff Escalante b4619b20f9
Website bugfix (#9415)
* remove exportTrailingSlash from nextjs config

* drop out unneeded font

* add getting-started redirect
2020-06-16 10:27:54 -04:00
Moss 4f26534072 add on-error flag option to run cleanup provisioner 2020-06-16 15:34:00 +02:00
Megan Marsh 004ace4340
Merge pull request #9406 from hashicorp/fix_9084
Add usb_driver to common boot_command and use it on vsphere
2020-06-15 15:55:54 -07:00
Kevin Pruett 5db4bfc8e7
Add @hashicorp/react-tabs css styles 2020-06-15 15:53:29 -04:00
Calle Pettersson 0bcfefd0bc
Update Proxmox storagePoolTypes (#9418) 2020-06-15 14:00:32 +02:00
Sebastiano Mariani 7ec1d478d6
Update console.mdx
Fix possible typo carried over from Terraform documentation.
2020-06-12 14:29:40 -07:00
Moss 65cfb880fd Fix boot_command and update docs 2020-06-12 14:51:52 +02:00
Adrien Delorme 71cd2172e5
fix typo in SSH comunicator (#9412)
closes #9336
2020-06-12 12:22:02 +02:00
Jeff Escalante c9fdd021a5
🌷 Docs Website Maintenance (#9408)
* update dependencies, adjust for breaking changes
- Updates all dependencies to the latest versions
- Updates to consent manager to add all analytics scripts in a way that is compliant with GDPR
- Improves the product download component to default to 64-bit architecture for `x86_64` arch tags, removes some repeated processing code on the downloads page
- Standardizes and documents components available for use within markdown files, adding a new `Tabs` component
- Documents syntax highlighting standards
- You can now `@include` non-markdown files, they will be imported into a code block. This is great for things like code examples!

* Update website/README.md
2020-06-12 12:08:23 +02:00
Conlan 4afcc794be
Fix typo in VSphere Docs (#9405)
* Fix typo in VSphere Docs

* Update ConfigParamsConfig-not-required.mdx

Co-authored-by: Adrien Delorme <adrien.delorme@icloud.com>
2020-06-12 11:18:51 +02:00
Megan Marsh 1eb868cef5
Merge pull request #9384 from hashicorp/website/getting-started/migration
Refactored to learn hosted gettings started track.
2020-06-11 13:36:35 -07:00
Wilken Rivera 2d25a228db docs/amazon/session-manager: Fix typos in documentation 2020-06-11 11:15:08 -04:00
Megan Marsh 8aeaf28bf3
Merge pull request #9380 from hashicorp/azr-docs-remove-duplicate-guest-additions-mode-docfield
docs: virtualbox/iso: remove duplicate guest_additions_mode field ( it's already defined in `GuestAdditionsConfig` )
2020-06-10 11:08:17 -07:00
Megan Marsh a0a3ddbadb
Merge pull request #9379 from GennadySpb/sa-auth-in-yandex-export
Support Authentication by Service Account Key file in Yandex Export post-processor
2020-06-10 09:40:02 -07:00
packer-ci 05a2b854c4 cut version 1.6.0 2020-06-09 19:31:33 +00:00
Derek Strickland 647ccb35f1
Update website/pages/docs/install.mdx
Co-authored-by: kaitlincarter-hc <43049322+kaitlincarter-hc@users.noreply.github.com>
2020-06-09 14:39:43 -04:00
DerekStrickland 6de0dce33a Refactored to redirects instead of hard external links in side nav model 2020-06-09 13:58:33 -04:00
DerekStrickland 50fee40b53 Removed 'easy to use' 2020-06-09 12:47:53 -04:00
Adrien Delorme 63896b98ec docs: virtualbox/iso: remove duplicate guest_additions_mode field ( it's already defined in `GuestAdditionsConfig` ) 2020-06-09 15:12:13 +02:00
Adrien Delorme 451d4c2620
hcl2 docs pass (#9375)
* moved blocks and functions top the nav list for easier access ( I think those will be used a lot)
* added a concrete fileset example
* added more concrete examples in the blocks doc
2020-06-09 12:42:01 +02:00
tymac753 cb5bf65ada
Update Consul reference documentation (#9378) 2020-06-09 12:38:32 +02:00
Gennady Lipenkov 85da85271f Support SA Key authentication in Yandex Export post-processor 2020-06-09 11:06:12 +03:00
DerekStrickland b8f9d2e988 Refactored to learn hosted gettings started track. 2020-06-08 15:53:00 -04:00
Adrien Delorme eeabae88e3 Update abspath.mdx 2020-06-08 15:29:45 +02:00
Adrien Delorme cf6eca7e1c Revert "Add pwd function to HCL"
This reverts commit 2800043149.
2020-06-08 14:59:27 +02:00
Adrien Delorme 44dfa221de Revert "Add template_dir function to HCL"
This reverts commit 3b9a0427cd.
2020-06-08 14:59:22 +02:00
Megan Marsh 48b448dfd5
Merge pull request #9366 from hashicorp/fix_9248
Add ToolSyncTime and ToolUpgradePolicy to vSphere
2020-06-05 13:03:58 -07:00
Megan Marsh d73f83a9d9
Merge pull request #9367 from jeremiahsnapp/add-template_dir-and-pwd-functions
Add template_dir() and pwd() functions to HCL
2020-06-05 12:57:04 -07:00
Megan Marsh 2c89d086dc typo in docs 2020-06-05 12:44:32 -07:00
Megan Marsh 8b9ed084b2
Merge pull request #9365 from hashicorp/except_only_block_hcl_docs
Update Provisioners and Post-Processor block HCL2 docs
2020-06-05 12:44:10 -07:00
Megan Marsh 7fcd702b45
Merge pull request #9358 from jhawk28/bug_9349
(vsphere-iso) add the ability to check if the IP is within the an IP range
2020-06-05 12:18:51 -07:00
Wilken Rivera f672f5bd9b command/validate: Add support for HCL2 configuration files
* Update validate command to use FixConfig for checking against known
fixers
* Update validation command flag docs
* Add ConfigFixer method to PackerHandler Interface
* Implement ConfigFixer interface in PackerConfig
* Remove all stdout messaging (i.e calls to c.Ui.Say) in the validate
command. The command will only display hcl.Diagnotic messaging when there is an error or warning.

HCL2 Configs
```
⇶  packer validate docker_centos_shell_provisioner.pkr.hcl

```

JSON Configs
```
⇶  packer validate vmware-iso_ubuntu_minimal/vmware-iso_ubuntu_minimal.json
Error: Failed to prepare build: "vmware-iso"

1 error occurred:
        * Deprecated configuration key: 'iso_checksum_type'. Please call `packer fix`
against your template to update your template to be compatable with the current
version of Packer. Visit https://www.packer.io/docs/commands/fix/ for more
detail.

Warning: Fixable configuration found.
You may need to run `packer fix` to get your build to run correctly.
See debug log for more information.

  map[string]interface{}{
        "builders": []interface{}{
                map[string]interface{}{
                        ... // 3 identical entries
                        "guest_os_type":     string("ubuntu-64"),
                        "http_directory":    string("http"),
-                       "iso_checksum":
string("946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2"),
+                       "iso_checksum":
string("sha256:946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2"),
-                       "iso_checksum_type": string("sha256"),
                        "iso_url":
string("http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso"),
                        "shutdown_command":  string("echo 'vagrant' | sudo -S shutdown -P now"),
                        ... // 4 identical entries
                },
        },
  }
```
2020-06-05 14:24:39 -04:00
Jeremiah Snapp 3f2b8587b1 Replace regexreplace docs typo with regex_replace
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:17:18 -04:00
Jeremiah Snapp 3b9a0427cd Add template_dir function to HCL
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:36 -04:00
Jeremiah Snapp 2800043149 Add pwd function to HCL
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:03 -04:00
Adrien Delorme bac9c74447
packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
Moss 112638da01 Add ToolSyncTime and ToolUpgradePolicy to vSphere 2020-06-05 17:20:44 +02:00
Moss 110b1411d7 Update provisioners and post-processor hcl2 docs 2020-06-05 15:49:09 +02:00
Wilken Rivera fd0764d668
docs/builder/azure-arm: Add shared_image_gallery to Azure builder options section (#9364) 2020-06-05 11:49:48 +02:00
Sylvia Moss 1422085ede
Validate host and network when looking for network (#9361) 2020-06-05 11:01:58 +02:00
Joshua Foster 90463e5394 make default for wait address to be any ipv4 address. add some better documentation 2020-06-04 23:13:46 -04:00
Joshua Foster 27a1ceef6d add example for any ipv4 address 2020-06-04 12:15:53 -04:00
Joshua Foster 1fb22a7b7b add the ability to check if the IP is within the an IP range 2020-06-04 01:55:25 -04:00
Joshua Foster d35f342319 add the ability to configure the http bind address. defaults to 0.0.0.0. 2020-06-03 16:40:18 -07:00
Megan Marsh 02590f6c44
Merge pull request #9329 from hashicorp/je.website-maintenance-5-29-20
🌷 Website Spring Maintenance
2020-06-03 16:25:23 -07:00
Paul Meyer e260212be3
Merge pull request #9323 [azure-chroot] copy data disks between shared image galleries
[azure-chroot] copy data disks between shared image galleries
2020-06-03 12:32:19 -07:00
Jeff Escalante f4d7b5f493
fix some stuff 2020-06-02 17:22:40 -04:00
Megan Marsh 19ae0ecf4c
Merge pull request #9245 from AdrienneCohea/master
Support named builds in HCL2 templates
2020-06-02 11:42:14 -07:00
Wei Cheng e0cfb404fb
builder/googlecompute: add support to specify storage location for GCP images (#9326)
* feat: add support to specify storage location for GCP images

Signed-off-by: Wei Cheng <calvinpohwc@gmail.com>
2020-06-02 13:42:33 -04:00
jhawk28 c9d0ede67a
add http and floppy to vsphere-iso docs. remove references to things … (#9343) 2020-06-02 17:48:11 +02:00
Adrien Delorme 52ba74e3c9 better docs 2020-06-02 16:33:32 +02:00
Adrien Delorme 1147ef9a36
Merge pull request #9291 from hashicorp/f-singular-build-source-blocks
Allow to set source fields from a new `build.source` block
2020-06-02 12:38:45 +02:00
Adrien Delorme 83b3eb3be2 better words on the hcl2 merge 2020-06-02 12:35:32 +02:00
Adrien Delorme e2b620677c Update example-block.mdx 2020-06-02 12:25:16 +02:00
Adrien Delorme b075ae47d7 Update assignment.mdx 2020-06-02 12:17:46 +02:00
Adrien Delorme 80885fd410
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 12:13:50 +02:00
Adrien Delorme 935ac55d24 more examples for the source block 2020-06-02 12:11:55 +02:00
Adrien Delorme 9a22e85e91 Update source.mdx 2020-06-02 12:01:49 +02:00
Adrien Delorme 171809b033 Update source.mdx 2020-06-02 12:01:21 +02:00
Adrien Delorme 7a113c0985 Merge branch 'f-singular-build-source-blocks' of ssh://github.com/hashicorp/packer into f-singular-build-source-blocks 2020-06-02 11:58:52 +02:00
Adrien Delorme 022ed5b29e Update assignment.mdx 2020-06-02 11:58:48 +02:00
Adrien Delorme 3640bd9f01
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:58:01 +02:00
Adrien Delorme 4349a55e61 Explain that input values can be used in locals from example locals block 2020-06-02 11:57:32 +02:00
Sylvia Moss ce45a1990a
Refactor communicator config for Qemu and add SkipNatMapping option (#9307) 2020-06-02 11:56:36 +02:00
Adrien Delorme ffcf073007 Update source.mdx
remove double space
2020-06-02 11:53:14 +02:00
Adrien Delorme 5c6e4e47d7
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:51:33 +02:00
Adrien Delorme 7c3cc995a9
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:51:19 +02:00
Adrien Delorme 456b0fa0a4
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:46 +02:00
Adrien Delorme f4c393097a
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:28 +02:00
Adrien Delorme 5cee17ca5f
Update website/pages/docs/from-1.5/blocks/locals.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:17 +02:00
Adrien Delorme 279f9365af
Update website/pages/docs/from-1.5/blocks/index.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:00 +02:00
Adrien Delorme e2090dafd4
Update website/pages/docs/from-1.5/blocks/build/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:49:40 +02:00
Adrien Delorme 9ef3020bd5
Update website/pages/docs/from-1.5/blocks/build/index.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:49:14 +02:00
Conlan 0ca418d656
Fix typo in Ansible Provisioner Docs 2020-06-01 09:53:54 -04:00
Megan Marsh 5efb1a195e update docs for configuration_paramaters to explain what it actually is. 2020-05-29 15:07:34 -07:00
Jeff Escalante 3a55b92733
regenerate partials 2020-05-29 17:33:35 -04:00
Jeff Escalante 700d9e4710
azure chroot partial fixes 2020-05-29 17:17:23 -04:00
Jeff Escalante cbb7c88dc0
config keys note 2020-05-29 17:14:29 -04:00
Jeff Escalante 20172e185d
formatting fixes 2020-05-29 17:13:27 -04:00
Jeff Escalante 66c34f5110
shell snippet fixes, nextjs-scripts upgrades 2020-05-29 17:12:05 -04:00
Jeff Escalante 87f38e84ef
improve readme with blocks, trim down dependencies 2020-05-29 16:37:50 -04:00
Megan Marsh 184dc6cc44
Merge pull request #9260 from hashicorp/fix_9256
make package_include match output_vagrantfile parsing and abspath cal…
2020-05-29 10:41:26 -07:00
Paul Meyer 2288ab3b53 fix typo 2020-05-29 04:15:53 +00:00
Feiyu Shi f86f5b958a Merge remote-tracking branch 'origin/master' into identity 2020-05-28 19:03:44 -07:00
Paul Meyer af96cf7881 Generated files 2020-05-28 23:38:14 +00:00
Paul Meyer c9284d03aa Add config for data disk/snapshot naming 2020-05-28 23:37:38 +00:00
Baptiste Lafontaine 553d2a7d0b
The prefix for local is "local." (and not ".local") (#9317) 2020-05-28 17:21:49 +02:00
Adrien Delorme 324367b808 Update variable.mdx 2020-05-28 17:09:57 +02:00
Adrien Delorme 95d37ffc06 add headers 2020-05-28 17:04:34 +02:00
Adrien Delorme 12c168b2d1 better docs 2020-05-28 16:49:54 +02:00
Adrien Delorme beceb90844 better docs 2020-05-28 16:22:07 +02:00
Adrien Delorme 11104af3a2 website/pages/docs/from-1.5/blocks/build/index.mdx: better docs arround source(s) 2020-05-28 16:16:59 +02:00
Adrien Delorme 0fa60c68fb
Drop the iso_checksum_type & iso_checksum_url fields (#8437)
* 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
2020-05-28 11:02:09 +02:00
Adrien Delorme b805a01e1a
Update website/pages/docs/from-1.5/blocks/build/provisioner.mdx
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-05-28 10:45:24 +02:00
Megan Marsh d3859cf592
Merge pull request #9305 from hashicorp/azr-docs-fix-guide
HCL2: Update guide example to fix broken example
2020-05-27 16:04:31 -07:00
Joshua Foster 43714049e8 add set_host_for_datastore_uploads flag 2020-05-27 15:00:08 -07:00
Adrien Delorme 851b354ac9 more fixes 2020-05-27 16:51:44 +02:00
Adrien Delorme 4d8a5e1c72
Update from-json-v1.mdx 2020-05-27 16:40:47 +02:00
Megan Marsh 01839e272e
Merge pull request #9277 from nitrocode/add-source-ami-creation-date
Added SourceAMICreationDate
2020-05-26 12:24:47 -07:00
nitrocode 6d29ec956b Added SourceAMICreationDate 2020-05-26 15:04:03 -04:00