Adrien Delorme
225081c3a6
Update hcl2template/types.source.go
...
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-06-02 11:51:48 +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
Adrien Delorme
324367b808
Update variable.mdx
2020-05-28 17:09:57 +02:00
Adrien Delorme
059a782b0e
remove debug log
2020-05-28 17:07:11 +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
8a13dd3073
HCL2: Make the `build`.`sources` argument list optional
2020-05-28 16:38:41 +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
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
Adrien Delorme
397a08b32d
Update locals.mdx
2020-05-26 15:54:15 +02:00
Adrien Delorme
2b8d6991d9
better 'related' sections for source and locals blocks
2020-05-26 15:46:02 +02:00
Adrien Delorme
72f76cbc8e
document hcl2 blocks
2020-05-26 15:29:47 +02:00
Adrien Delorme
ea1e1e8b14
Update CHANGELOG.md
2020-05-26 14:29:16 +02:00
Adrien Delorme
125ffe36c3
Allow to override some source fields from the build section
...
Using `hcl.MergeBodies`
2020-05-25 17:09:37 +02:00
Sylvia Moss
601d3638f6
add communicator config reference to hyperv docs ( #9289 )
2020-05-25 15:18:14 +02:00
Lukas Kämmerling
26d309c88c
Clarify the correct usage of the snapshot_name field on the hcloud builder ( #9276 )
2020-05-25 14:52:13 +02:00
Megan Marsh
5dfd2a763e
send logs about floppy failure directly to UI not just logs ( #9272 )
2020-05-25 12:02:29 +02:00
Megan Marsh
fecb040bf4
fix bug where build vars couldn't be properly interpolated into this execute command ( #9275 )
2020-05-25 11:54:27 +02:00
jmarcelletti
67df9f778a
Update index.mdx ( #9278 )
...
Unclosed quotes kill builds
2020-05-25 11:18:03 +02:00
Megan Marsh
688ed63edf
update changelog
2020-05-21 11:42:28 -07:00
Megan Marsh
8f73a44410
stop failing flaky test until I can fix it
2020-05-21 10:24:42 -07:00
Megan Marsh
334f399ee3
Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916
...
provisioner/powershell: Update default execute command to handle script errors
2020-05-21 09:55:25 -07:00
Megan Marsh
45a5d28bad
Merge pull request #9159 from rgl/feature-qemu-add-support-for-network-bridge
...
qemu: add support for using a network bridge
2020-05-21 09:52:49 -07:00
Megan Marsh
082d806b1f
fix httpip acquisition
2020-05-21 09:39:54 -07:00
Wilken Rivera
2e326ef334
Switch back to call operator as opposed to dot sourcing
...
* Ensure child scope doesn't conflict with parent scope
* Add elevated user options to tests case.
2020-05-21 09:07:55 -04:00
Wilken Rivera
38f799df3e
Add conditional to check if LastExitCode is defined
...
* Add broken requires statement test case
* Add test case to reproduce invalid LastExitCode
2020-05-21 09:07:43 -04:00
Wilken Rivera
35df3914d2
provisioner/powershell: Update default execute command to handle script errors
...
This change sets the ErrorActionPreference and wraps the script execution in a Try/Catch statement so that the provisioner can capture any errors encountered when running the script. In addition to the try/catch the `&` operator is replaced by the `.` sourcing operator to ensure the script is executed in the same scope as the parent command (so that errors bubble up properly).
Tests after change
```
⇶ ACC_TEST_BUILDERS=amazon-ebs ACC_TEST_PROVISIONERS=powershell go test ./provisioner/powershell/... -timeout=1h
ok github.com/hashicorp/packer/provisioner/powershell 915.865s
```
2020-05-21 09:05:43 -04:00
Wilken Rivera
13e0c1a097
tests/provisioner/powershell: Add acceptance test to reproduce issue 4916
2020-05-21 09:05:43 -04:00
Rui Lopes
06fad6cc4f
qemu: add support for using a network bridge
2020-05-20 16:46:32 -07:00
Megan Marsh
6ad67f6800
update changelog
2020-05-20 15:10:40 -07:00
Megan Marsh
b3ece95f27
Merge pull request #9254 from ad-m/hyperone-builder-hcl
...
HCL compliance for HyperOne builder
2020-05-20 13:15:21 -07:00
Megan Marsh
782342a707
Merge pull request #9202 from overdrive3000/improve-secrets-manager
...
Add support for specifying key to fetch from AWS Secrets Manager
2020-05-20 13:13:28 -07:00
Sylvia Moss
be9dbaacd7
Interpolate generatedData in the Inspec provisioner ( #9262 )
...
* Interpolate generatedData in the Inspec provisioner
* Add inspec license section to inspec docs
* add user arg if user config it not empty
* increase resource size for check-lint pipeline
* update changelog
* Update provisioner/inspec/provisioner.go
* Update provisioner/inspec/provisioner.go
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-05-20 15:43:41 -04:00
Wilken Rivera
c084be974b
Merge pull request #9264 from hashicorp/update-cty-funcs
...
Update github.com/hashicorp/go-cty-funcs to master
2020-05-20 15:10:09 -04:00
Megan Marsh
24dd7e9dbb
Merge pull request #9257 from hashicorp/azr-hcl2-use-source-type-and-name
...
HCL2: use source type and name as Name of a CoreBuild
2020-05-20 11:36:15 -07:00
Megan Marsh
3c782e9d03
Merge pull request #9239 from hashicorp/enable_artifice
...
Add Artifice postprocessor ID to valid artifacts for postprocessors t…
2020-05-20 10:46:44 -07:00
Adrien Delorme
5fdd1d1dee
get github.com/hashicorp/go-cty-funcs@0d04eb807361
2020-05-20 15:51:34 +02:00
Adrien Delorme
b01fb30c36
Update CHANGELOG.md
2020-05-20 12:28:13 +02:00
Adrien Delorme
1e8e8a4e45
Update CHANGELOG.md
2020-05-20 12:27:54 +02:00
Wilken Rivera
d3aa53c9da
docs/hcl2: Update HCL2 beta note link ( #9258 )
...
This change updates the Beta notes on the Packer docs site with a link
to the pinned HCL2 implementations list issue.
Closes #9175
2020-05-20 12:24:45 +02:00
Megan Marsh
4041cb7775
generated code
2020-05-19 16:10:51 -07:00
Megan Marsh
1c214628ed
Merge pull request #9234 from hashicorp/hcl_force_and_debug
...
enable force, debug, and on-error for hcl2 builds
2020-05-19 16:02:06 -07:00