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
Megan Marsh
1f3b3f8fd9
change retry func to a 15 min timeout
2020-07-21 15:55:39 -07:00
Megan Marsh
a56942d3c7
change isAwsErr to an exported func so I can use it in other aws modules.
2020-07-21 15:30:45 -07:00
Megan Marsh
036ea238bf
wrap CreateImage call in a retry to account for eventual consistencey issues with image state
2020-07-21 15:30:45 -07:00
Gennady Lipenkov
53e7f4e71a
extend artifact, code refactoring
2020-07-22 01:01:30 +03:00
Megan Marsh
7d1b6969b0
update changelog
2020-07-21 13:15:38 -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
22b49c1a92
delete cvm-filter configuration
2020-07-21 11:04:41 +08:00
piggona
ecfce6ef4c
delete cvm-filter configuration
2020-07-21 11:04:32 +08:00
piggona
38563df35c
builder/tencent: add key source_image_name to get source image by name when creating image.#9548
2020-07-21 11:04:11 +08:00
piggona
485b2b3bd5
run make generate
2020-07-21 11:03:50 +08:00
piggona
a1b6f809c7
add:argument key SourceImageName to get source image by name.
2020-07-21 11:02:30 +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
Gennady Lipenkov
e0cc7b9d8c
yandex-import: allow create image based on another one
...
Allow as source for a new Compute Image not only URL to Storage Object but also a another one Compute Image
Details at official doc about ImageCreateRequest https://cloud.yandex.com/docs/compute/grpc/image_service#CreateImageRequest
2020-07-20 20:26:22 +03:00
Megan Marsh
ea4aa67f78
make friendly error message ( #9605 )
2020-07-20 16:58:38 +02: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