17452 Commits

Author SHA1 Message Date
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
3dc4ba2d68
Json vs HCL2 parity refactor (#9301)
* refactor so that json and hcl2 templates are both prepared in the same place in the build call, to make code easier to reason about. Remove overly verbose error output which isn't useful in vast majority of cases

* fix tests

* check err msg

* hcl2template.PackerConfig.GetBuilds: raise a diagnostic in case the packer core build perpare call errors

Co-authored-by: Adrien Delorme <adrien.delorme@icloud.com>
2020-05-28 10:43:58 +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
Megan Marsh
7b9a33d385
Merge pull request #9100 from jhawk28/bug_9076
dont set the host for the datastore upload
2020-05-27 15:39:09 -07:00
Joshua Foster
828440d852 rebase and run generate 2020-05-27 15:05:23 -07:00
Joshua Foster
43714049e8 add set_host_for_datastore_uploads flag 2020-05-27 15:00:08 -07:00
Joshua Foster
9895f90451 dont set the host for the datastore upload 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
Ali Rizvi-Santiago
2a8bc45bc4 Added unit-tests for the netmap parsing components in the vmware builder. 2020-05-26 23:03:30 -05:00
Ali Rizvi-Santiago
7c1ad4adcf Added unit-tests for the dhcpd configuration components in the vmware builder, and fixed a few discovered race conditions. 2020-05-26 22:59:35 -05:00
Feiyu Shi
4b56635c79 Revert "import github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi"
This reverts commit 430fac1a2bd3e9277610d3dad8bf002814fb3a45.
2020-05-26 17:17:59 -07:00
Feiyu Shi
fdb0b2ab03 Revert "validate if user assigned identity exists"
This reverts commit 9bd19df04095b75517b0858207e941e6b27e4a58.
2020-05-26 17:17:48 -07:00
Feiyu Shi
13a49f4655 Revert "fix go.mod/go.sum"
This reverts commit 79ac5bb4a4562ac6c4c099915021baa62c5296fd.
2020-05-26 17:17:00 -07:00
Feiyu Shi
c016f3752a upgrade SIG source api-version to match identity api-version to avoid potential setback for identity 2020-05-26 16:08:00 -07:00
Megan Marsh
077d34f12c
Merge pull request #9279 from gamethis/fix_arg_order
[WIP] Anisble-Remote fix arg order
2020-05-26 16:03:31 -07: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
Wilken Rivera
230fa34909
Merge pull request #9273 from hashicorp/fix_secretsmanager_tests
un-bypass secretsmanager tests
2020-05-26 12:37:45 -04:00
Megan Marsh
4a058dfd19 un-bypass secretsmanager tests 2020-05-26 11:50:46 -04:00
Wilken Rivera
80cd6b4047
Merge pull request #9286 from overdrive3000/fix-multikey
Fix aws_secretsmanager multiple keys support
2020-05-26 11:48:52 -04:00
Adrien Delorme
a2e9439ee6
provisioner/salt-masterless: ignore the CmdArgs field in hcl2 (#9290)
fix #9233
2020-05-26 16:46:31 +02:00
Alexandra Freeman
3e7d0a5388
Update index.jsx (#9263)
Updating Community resources to move Forum to the top, remove IRC and update language for general help. These changes are to align with other .io sites, and the initiative to point the community to a consolidated location (Discuss Forum). 


Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-05-26 10:35:04 -04:00
Wilken Rivera
1e90165a56
Add source URL to test fixture script (#9296) 2020-05-26 10:24:12 -04: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
Rui Lopes
4839b9189d builder/qemu: timeout waiting for the guest to become available in the network bridge 2020-05-26 07:46:06 +01:00
Feiyu Shi
79ac5bb4a4 fix go.mod/go.sum 2020-05-25 12:48:42 -07:00
Feiyu Shi
3fdab998f8 check error 2020-05-25 12:33:33 -07: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
Feiyu Shi
9bd19df040 validate if user assigned identity exists 2020-05-24 19:05:46 -07:00
Feiyu Shi
430fac1a2b import github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi 2020-05-24 19:05:45 -07:00
Feiyu Shi
b334458b91 use empty struct for UserAssignedIdentities map value; omitempty 2020-05-24 19:05:45 -07:00
Feiyu Shi
c5e2eff847 change to []*Resource 2020-05-24 19:05:45 -07:00
Feiyu Shi
3e3fdaa24e make generate 2020-05-24 19:05:45 -07:00
Feiyu Shi
76a7ab25e2 add SetIdentity test 2020-05-24 19:05:45 -07:00
Feiyu Shi
764f99ec7b add correct api-version 2020-05-24 19:05:45 -07:00
Feiyu Shi
f7f033a7fd add config validation test 2020-05-24 19:05:45 -07:00
Feiyu Shi
10b0a4548f add identity resource id validation 2020-05-24 19:05:45 -07:00
Feiyu Shi
7c1a62dfed set identity field in the template 2020-05-24 19:05:45 -07:00
Feiyu Shi
d9c9bfbae8 add identity field to the template 2020-05-24 19:05:45 -07:00
Feiyu Shi
b5b2982772 add user_assigned_managed_identities to the config 2020-05-24 19:05:45 -07:00
Juan Mesa
cc34da365a Add error check
Thrown an error if no key is given when secret has mutliple values
2020-05-23 15:15:06 +02:00