Commit Graph

15730 Commits

Author SHA1 Message Date
Li Kexian 94a32dc282
tencentcloud cvm use CLOUD_PREMIUM disk by default (#9663) 2020-07-29 15:10:00 +02:00
jhawk28 3370c91cf2
add some additional messaging when a boot command fails to type (#9661) 2020-07-29 15:06:45 +02:00
Megan Marsh 883339be25
Set project via project flag, not setting in the config (#9662)
* set project via project flag, not setting in the config + tests
2020-07-29 10:50:11 +02:00
Megan Marsh b695615d7d
fix local file stating (#9660) 2020-07-29 10:26:09 +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
Megan Marsh 882fcd9367
Merge pull request #9639 from nextus/provision-sshagent-fix
fix agent auth in ssh communicator for ansible provisioner (#9488)
2020-07-27 18:50:56 -07:00
Megan Marsh 02d3fb37e3 fix return 2020-07-27 08:53:33 -07:00
Megan Marsh 69b0e66b5d
Update post-processor/vsphere/post-processor.go
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-27 08:52:29 -07:00
Artem Zavatskiy bec367347d ansible-provisioner: fix tests related to ssh agent 2020-07-27 14:31:32 +03:00
Reto Kupferschmid 943cb1275d
fix missing comma (#9652) 2020-07-27 11:21:40 +02:00
Adrien Delorme c34e89aec7
getEncodedPassword: simplify encodedPassword return 2020-07-27 10:33:39 +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 6383e6cbbf fix vsphere postprocessor password log filtering, write tests 2020-07-25 08:24:21 -07:00
Megan Marsh b3c3e3ed63
Merge pull request #9589 from hashicorp/fix_9184
post-processor/vsphere: Fix password encoding in vsphere post-processor ovftool call
2020-07-25 08:23:54 -07:00
Megan Marsh bba97b8f26
Merge pull request #9644 from satyamuralidhar/patch-1
nginx server creation using packer
2020-07-24 10:23:04 -07:00
Megan Marsh 93ecc89328
Merge pull request #9646 from hashicorp/azr-feature_requests_issue_template_update
add a 'Community Note' section to .github/ISSUE_TEMPLATE/feature_requests.md
2020-07-24 10:19:07 -07:00
Adrien Delorme 8803f1f6cf Update CHANGELOG.md 2020-07-24 15:49:10 +02:00
satya ac45bc6029
Update packages.sh 2020-07-24 17:10:11 +05:30
Adrien Delorme d31192a7fc
Update feature_requests.md
add a 'Community Note' section
2020-07-24 13:34:15 +02:00
Adrien Delorme 591cbd9290
Update examples/amazon/nginx_server/nginx.json 2020-07-24 13:16:23 +02:00
satya d029d95ba2
Update packages.sh (#9643)
check apache version before end
2020-07-24 13:15:33 +02:00
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost.

This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too.

fix #9478
2020-07-24 10:58:03 +02:00
satyamuralidhar 4816b55967 nginx server 2020-07-24 10:27:03 +05:30
Megan Marsh 74aef3c819 apply same url encoding to other places we call ovftool 2020-07-23 17:03:42 -07:00
Megan Marsh 1b6b44589d Change to use query syntax instead of manually throwing queries in.
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-23 14:36:41 -07:00
Megan Marsh 393b2d16c4 switch to using net/url.URL struct for encoding rather than the incorrect QueryEscape for the whole URL. 2020-07-23 14:33:09 -07:00
Megan Marsh 2e4d0c888a pull ovftool uri generation into separate function, test function 2020-07-23 14:33:09 -07:00
Megan Marsh 242e8534d5
Merge pull request #9609 from satyamuralidhar/patch-1
Here iam written a packer sample script for apache server
2020-07-23 11:39:15 -07:00
Megan Marsh b88dede234 moved example files 2020-07-23 11:28:55 -07:00
Artem Zavatskiy c0048daed5 fix agent auth in ssh communicator for ansible provisioner (#9488) 2020-07-23 16:03:01 +03:00
Megan Marsh b55396e677
communicator/ssh: Add new option to supply custom key exchange algorithms in SSH client (#9634)
* add kex algorithm option to ssh config

* regenerate code
2020-07-23 09:41:31 +02: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
Megan Marsh 0a66f19dbe
fix minimal json example to use new checksumming (#9633) 2020-07-23 09:39: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
satyamuralidhar d5bfe0b869 new chage 2020-07-23 11:23:16 +05:30
satya 47bc5069ab
Delete apache_server 2020-07-23 11:14:55 +05:30
satya 740773d321
Create apache_server 2020-07-23 11:11:55 +05:30
Megan Marsh 1f6473b4c1
Merge pull request #9614 from GennadySpb/yndx-import-create-new-from-another-one
yandex-import: allow create image based on another one
2020-07-22 15:50:51 -07:00
Megan Marsh 5bbef6e0f9
Merge pull request #9630 from szepeviktor/patch-1
Add CircleCI badge to README
2020-07-22 15:39:09 -07:00
Viktor Szépe 273d59ce9f
Add CircleCI badge
and remove Travis
2020-07-22 19:56:55 +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 f9df185ef1
Merge pull request #9579 from hashicorp/fix_9562
wrap CreateImage call in a retry to account for eventual consistencey…
2020-07-22 08:43:10 -07:00
Chris Chilvers 63eedf841e Fix failing tests due to IAP communicator host name
Moved setting the host from ApplyIAPTunnel to Config.Prepare but forgot to
update the related tests.
2020-07-22 12:58:05 +01:00
Gennady Lipenkov 46a5561340 go import file 2020-07-22 11:39:28 +03:00
Megan Marsh 21287fee58
Merge pull request #9570 from hashicorp/azr-more-examples
HCL2: More examples for vsphere & vmware ( esxi )
2020-07-21 16:36:51 -07: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