Commit Graph

16822 Commits

Author SHA1 Message Date
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
Before change
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
Error: Cannot tell whether /tmp/unformatted.pkrvars.hcl contains HCL2 configuration data

⇶  echo $?
1
```

After fix
```
⇶  packer fmt -check /tmp/unformatted.pkrvars.hcl
/tmp/unformatted.pkrvars.hcl

⇶  echo $?
3

⇶  packer fmt -check command/test-fixtures/fmt
command/test-fixtures/fmt/unformatted.pkr.hcl
command/test-fixtures/fmt/unformatted.auto.pkrvars.hcl
command/test-fixtures/fmt/unformatted.pkrvars.hcl

```
2020-12-14 10:29:58 -05:00
Roman Mingazeev 354166350d yandex: do not use cloud-config fileds due to possible collision 2020-12-14 13:04:27 +03:00
Donald Guy 889e42443a
Fix 2nd binding of string reverse for list reverse (#10380) 2020-12-14 10:57:08 +01:00
Pyrrvs f0612e4688 improve parser by skipping all lines containing a '{' or a '}'. fix unecessary []byte cast (linter issue). 2020-12-14 01:00:24 +01:00
gla 7201ce9248 make packer compatible MacOS BigSur by making vmware fusion drivers able to lookup the VM IP address in apple dhcpd leases instead of vmware leases. 2020-12-13 23:26:53 +01:00
Megan Marsh d8277aa455
Merge pull request #10373 from hashicorp/makefile_changes
Modify struct-markdown generator code to work from different projct roots
2020-12-11 16:06:13 -08:00
Megan Marsh 2c62c9bff1 fix var naming and docs in acctest package 2020-12-11 15:23:12 -08:00
Megan Marsh 7f1456fc50 add godoc for acctest package 2020-12-11 15:15:25 -08:00
Megan Marsh 2805a59dbd remove unused tools, add some docs 2020-12-11 15:15:08 -08:00
Megan Marsh 575f8ab8e8 add readme to plugin-sdk subdir 2020-12-11 14:02:41 -08:00
Megan Marsh a6b6819b1d add makefile and go.mod file to sdk subdir. this'll make it easier to extract when we're ready. TODO: readme 2020-12-11 13:51:10 -08:00
Megan Marsh edb9d73027
Merge pull request #10368 from GennadySpb/yandex-export-show-progress
Yandex export show progress
2020-12-11 13:47:38 -08:00
Megan Marsh c90e3d8466 fix makefile 2020-12-11 13:37:03 -08:00
Megan Marsh 395920f917 didnt mean to delete this 2020-12-10 14:38:16 -08:00
Megan Marsh f179f01314 Modify struct-markdown generator code to work from different projct roots
Modify makefile to call generate code properly, setting project root.
'make generate' now avoids deleting website code generated in the packer plugin sdk.
For now it will be maintainers' responsibility to regenerate this docs code from the
packer plugin sdk every release, and commit it to these folders manually.
remove boot command generator code
2020-12-10 14:35:14 -08:00
Gennady Lipenkov d0367d90bd Periodically send signal to trigger qemu-img to show current progress 2020-12-10 18:50:28 +03:00
Roman Mingazeev 992cbe6dee
Update post-processor/yandex-export/step-attach-disk.go
Co-authored-by: GennadySpb <lipenkov@gmail.com>
2020-12-10 15:17:27 +03:00
Roman Mingazeev 69adcdb2a3
Update post-processor/yandex-export/step-attach-disk.go
Co-authored-by: GennadySpb <lipenkov@gmail.com>
2020-12-10 15:17:21 +03:00
Roman Mingazeev ceb02833a4
Update post-processor/yandex-export/step-attach-disk.go
Co-authored-by: GennadySpb <lipenkov@gmail.com>
2020-12-10 15:17:09 +03:00
Roman Mingazeev bbd9ee8589 fix export when using empty ubuntu image 2020-12-10 14:52:22 +03:00
Adrien Delorme e89db37717
add aws multiplugin binary canary code (#10272)
This creates a new plumbing to allow to have binaries that can define any plugin on any type.
2020-12-10 09:22:09 +01:00
Roman Mingazeev aa0efcf73e
Yandex/ssh communicator in export (#10352)
* use ssh for communicate to export
* Update post-processor/yandex-export/step-create-s3-keys.go

Co-authored-by: GennadySpb <lipenkov@gmail.com>
2020-12-09 16:51:34 +01:00
Gareth Rees 355b93730b
Gcp oslogin issue 10170 (#10360) 2020-12-09 15:01:51 +01:00
Roman Mingazeev f8e85f94fd
fix set user-agent (#10361) 2020-12-09 14:48:35 +01:00
Mike Tougeron e0e82e2192
Support AWS gp3 volumes (#10338)
* Support AWS gp3 volumes
* docs
* tests
2020-12-09 13:06:57 +01:00
Megan Marsh 39ab646236
move plugin and rpc code into sdk; other minor tweaks (#10359) 2020-12-09 12:39:54 +01:00
Sylvia Moss 1e86c49e32
Add packer-plugin-check command (#10351) 2020-12-09 10:16:22 +01:00
Megan Marsh 26946f1300
Merge pull request #10320 from seventieskid/gcp-wait-to-add-ssh-keys-10312
Gcp wait to add ssh keys 10312
2020-12-08 15:52:52 -08:00
Megan Marsh 1d2ee0bf81
Merge pull request #10337 from serverwentdown/serverwentdown/duplicate-output-file
Fix duplication of main disk in QEMU
2020-12-08 15:18:38 -08:00
Megan Marsh 7a05d0ce15
Merge pull request #10355 from hashicorp/clean_provisioners
Clean provisioners
2020-12-08 11:14:31 -08:00
Megan Marsh 48a0172670 better error handling and messaging in provisioner acc test framework 2020-12-08 09:59:04 -08:00
Megan Marsh 2797c686e0
Update packer-plugin-sdk/acctest/provisioneracc/provisioners.go
Co-authored-by: Sylvia Moss <moss@hashicorp.com>
2020-12-08 08:24:26 -08:00
Megan Marsh 3c346867f4 fix nil pointer dereference 2020-12-07 15:45:16 -08:00
Megan Marsh 00c61f9987 fix documentation for acceptance tests 2020-12-07 15:45:16 -08:00
Megan Marsh 6ecdd3ca16 small tweaks 2020-12-07 15:45:16 -08:00
Megan Marsh 76177b50ce Refactor provisioner acceptance tests to shell directly out to Packer rather than import the core. Modify test case formatting to more closely reflect the builder test cases. 2020-12-07 15:45:16 -08:00
Megan Marsh bc7dae2dff fix ansible acceptance tests not to import packer core; add override to Builder acctest TestCase so you can supply your own provisionerstore. 2020-12-07 15:45:16 -08:00
Megan Marsh 823ff34434 remove noop ui, replace in adapter and ansible tests with sdk's TestUi 2020-12-07 15:45:16 -08:00
Megan Marsh e117117ea5
Merge pull request #10317 from Direnol/yandex/common-configs
reuse common configs
2020-12-07 09:48:13 -08:00
Roman Mingazeev 9fabad6f1d rebase && some fixes 2020-12-07 18:27:22 +03:00
Roman Mingazeev 1c08463204 rebase 2020-12-07 18:13:12 +03:00
Roman Mingazeev efe6d2f08f add comment and remove overrides 2020-12-07 18:13:12 +03:00
Roman Mingazeev 23118c451c fix delete 2020-12-07 18:13:12 +03:00
Roman Mingazeev 4eb3daec8e lint 2020-12-07 18:13:12 +03:00
Roman Mingazeev d30c09e642 remove incorrect doc 2020-12-07 18:13:12 +03:00
Roman Mingazeev 478fda12ba reuse common configs 2020-12-07 18:13:06 +03:00
Roman Mingazeev adb4a14471
do better mount image (#10335)
* do better mount image

* check error
2020-12-07 12:20:06 +01:00
Megan Marsh 4c0adb7d67
Merge pull request #10340 from hashicorp/acceptance_test_fix
Modify vmware_vmx and docker acceptance tests to use builderT framework
2020-12-04 09:28:38 -08:00
Megan Marsh cda3aa205a linting 2020-12-03 16:11:36 -08:00
Megan Marsh 352f064b55 fix docker acceptance tests. Turns out they were broken on the main branch too; needed to move noop progress bar into the sdk to be used in the builder testui. 2020-12-03 16:04:49 -08:00