Adrien Delorme
77a29fc2f8
Allow to have `dynamic` blocks in a `build` block + tests ( #10825 )
...
This :
* allows to have a `build.dynamic` block
* add tests
* makes sure to show a correct message when a source was not found
* display only name of source (instead of a weird map printout)
* use a "Did you mean %q" feature where possible
Because dynamic blocks need all variables to be evaluated and available, I moved parsing of everything that is not a variable to "after" variables are extrapolated. Meaning that dynamic block get expanded in the `init` phase and then only we start interpreting HCL2 content.
After #10819 fix #10657
2021-03-30 15:53:04 +02:00
Sylvia Moss
a588808270
update v1.7.1 changelog ( #10837 )
2021-03-29 14:04:32 +02:00
Harvey Lowndes
b9b1cdf75f
Address review comments
2021-03-29 12:57:10 +01:00
Kerim Satirli
2ac5fe894c
adds missing word ( #10836 )
2021-03-29 11:01:03 +02:00
Kaivalya Shah
fbb9429910
HCL2 example syntax changes ( #10832 )
...
An HCL2 example contained commas to separate the lines, and the metadata block did not have the equals sign, which is not valid.
2021-03-29 11:00:42 +02:00
Harvey Lowndes
cb359e8064
Update OCI docs for flex shapes
...
Update the docs to reflect flex shape additions. Also makes a fix to the mapstructure.
2021-03-26 12:26:52 +00:00
Adrien Delorme
a9bec7945e
remove .mdx extensions in links ( #10823 )
...
Some of them were added in #10800 some where already there
2021-03-25 14:02:21 +01:00
Sylvia Moss
505cbd2591
Vendor amazon plugin ( #10800 )
...
* remove amazon from core
* vendor amazon plugin
* remove website content
* Add amazon to docs-remote-plugins
* update amazon reference links in the documentation
* update amazon docs version to latest
Co-authored-by: Adrien Delorme <adrien.delorme@icloud.com>
2021-03-25 13:37:48 +01:00
GennadySpb
25fddf3199
Add release build for darwin/arm64 ( #10804 )
...
* Add release build for darwin/arm64
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2021-03-25 13:34:21 +01:00
Ricardo Katz
166df2ce1d
correct provisioner typo ( #10822 )
...
Correct provision typo
2021-03-25 13:27:05 +01:00
Megan Marsh
755395faf8
Merge pull request #10820 from chrisroberts/force-no-direct-upload-to-vagrantcloud
...
Override direct upload based on box size
2021-03-24 14:50:49 -07:00
Megan Marsh
b958fe7a54
Merge pull request #10821 from zchsh/zs.fix-nested-plugin-urls
...
website: fix issue with .mdx in plugin docs URL paths
2021-03-24 14:10:14 -07:00
Zach Shilton
cc133ea250
website: fix issue with .mdx in URL paths
2021-03-24 16:39:29 -04:00
Chris Roberts
4ea4c0570f
Add test coverage for direct upload file size limits
2021-03-24 10:54:11 -07:00
Chris Roberts
a665e6b822
Always include all upload steps regardless of configuration
2021-03-24 10:53:38 -07:00
Chris Roberts
2de91e4862
Check configuration before running callback for upload confirmation
2021-03-24 10:52:56 -07:00
Chris Roberts
3a11820a41
Adjust upload limit value and fix error value stored in state bag
2021-03-24 10:51:10 -07:00
Adrien Delorme
0e3fcb589b
Implicit required_plugin blocks ( #10732 )
...
* used components that don't have a required_plugin block will make Packer 'implicitly' require those. These components are manually selected and commented for now.
* add tests
* docs
2021-03-24 11:31:39 +01:00
Wilken Rivera
70ceed1110
Update vendor modules
2021-03-23 17:41:43 -04:00
Wilken Rivera
82eedc8f02
Update packer docs to latest ( #10814 )
2021-03-23 17:02:44 -04:00
Wilken Rivera
1d53080625
Update script to exit on immediate failure ( #10815 )
2021-03-23 16:44:21 -04:00
Zachary Shilton
89931d0f2a
website: fixes and tweaks for plugin docs ( #10812 )
...
* website: sort nested plugin docs files
* website: allow ignored .md files in plugin docs folders
* website: allow plugin docs/README.md only as extra file
* website: fix issue with latest link for plugin docs.zip
2021-03-23 16:06:50 -04:00
Wilken Rivera
5e17dbeff2
Fix up regex in test
2021-03-23 14:39:45 -04:00
Wilken Rivera
d0512c6edd
docs/amazon: Updated generated docs
2021-03-23 14:14:59 -04:00
Adrien Delorme
7732f7998c
Add http_content func to serve variables from HTTP @ preseed ( #10801 )
...
This imports hashicorp/packer-plugin-sdk#43
* code generate things
* update docs
* update guides
* update examples
We want to add a new guide.
2021-03-23 12:31:13 +01:00
Adrien Delorme
ff01e6715a
HCL2: add templatefile function ( #10776 )
...
* tests
* docs
2021-03-23 12:02:05 +01:00
Megan Marsh
edc19eb859
Merge pull request #10806 from onlydole/bugfix/hashicorp-typo
...
Update 'Hashicorp' to 'HashiCorp' in the Amazon Documentation
2021-03-22 11:20:53 -07:00
Taylor Dolezal
1bb5c455aa
Update 'Hashicorp' to 'HashiCorp'
2021-03-22 11:05:42 -07:00
Bryce Kalow
8c61ca174f
feat: adds should-build website script ( #10779 )
2021-03-22 10:21:59 -04:00
Kyle MacDonald
ef6093c4c3
Merge pull request #10764 from zchsh/zs.remote-plugin-zip-approach
...
website: Implement RFC MKTG-033
2021-03-22 09:59:38 -04:00
Marcus Weiner
4d9fb629c6
Allow using API tokens for Proxmox authentication ( #10797 )
2021-03-22 11:48:31 +01:00
Megan Marsh
0993c976fa
hcl2_upgrade escaped quotes fix ( #10794 )
...
* clean up extra quoting that can cause text template failures. when everyone else abandons you, regex will always be there.
* LINTING
2021-03-22 10:56:30 +01:00
outscale-mgo
1e312ebc21
Fix description that was ignored in Osc builder ( #10792 )
...
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
2021-03-22 09:05:10 +01:00
Zach Shilton
b780da5750
website: run plugin docs check also on schedule
2021-03-20 21:59:34 -04:00
Zach Shilton
565ca6627c
website: revert test of plugin docs config validation
2021-03-20 21:51:42 -04:00
Zach Shilton
c100b56d44
website: clarify error message in plugin config check
2021-03-20 21:50:20 -04:00
Avi Miller
e6596a0a1d
[oracle-oci] Add support for E3/E4.Flex shapes
...
This addes an optional shape_config stanza which allows
you to specify how many ocpus and memory the Flex
instance should be allocated.
This required an upgrade of the OCI Go SDK version.
Signed-off-by: Avi Miller <avi.miller@oracle.com>
2021-03-21 12:46:21 +11:00
Zach Shilton
55012937a9
website: add comments to duo of plugin docs zip fns
2021-03-20 21:45:40 -04:00
Zach Shilton
15d467eaf1
website: fix outdated comment
2021-03-20 21:45:12 -04:00
Zach Shilton
ce896351b9
website: temporary change to double-check validation
2021-03-20 21:37:21 -04:00
Zach Shilton
fb0886b724
website: Implement basic validation for plugin docs config
2021-03-20 21:35:46 -04:00
Andrew Pryde
a915ec8e05
Upgrade oci-go-sdk to latest
2021-03-20 02:16:17 +00:00
Megan Marsh
667f930d3d
Merge pull request #10793 from hashicorp/update-changelog-plugin-extraction-notes
...
update CHANGELOG
2021-03-19 13:42:54 -07:00
Wilken Rivera
f2f65607eb
update CHANGELOG
2021-03-19 14:32:05 -04:00
Megan Marsh
ecaff88af9
Merge pull request #10780 from hashicorp/fix_10728
...
add legacy_isotime hcl function
2021-03-19 09:51:24 -07:00
Megan Marsh
a40a782408
remove escaped dir
2021-03-19 09:28:30 -07:00
Brian Farrell
80f807de4d
Fix issue with test breaking default value when client_cert_token_timeout is missing ( #10783 )
2021-03-19 15:17:41 +01:00
Wilken Rivera
ac7c0f2f04
Update link in issue migrator config ( #10791 )
2021-03-19 09:48:58 -04:00
Adrien Delorme
e2e6bce4c4
Update hcl2_upgrade_test.go
...
show diffs with strings
2021-03-19 13:56:41 +01:00
jhawk28
9f647ba2bb
try to retype key if an error is received ( #10541 )
2021-03-19 13:27:05 +01:00