Commit Graph

16651 Commits

Author SHA1 Message Date
Megan Marsh 16bab1daf1 delete unused code with confusing name collision 2020-12-03 10:15:30 -08:00
Megan Marsh a0e81806d3
Merge pull request #10328 from hashicorp/sdk_testing
move builder/testing framework into sdk; it imports the core but I th…
2020-12-03 10:11:28 -08:00
Megan Marsh 2667bf3d3b
Merge pull request #10336 from hashicorp/move_plugin_discover
Move plugin discover to plugin package
2020-12-03 10:09:37 -08:00
sylviamoss efa7ec7883 don't override builder/prov/pproc 2020-12-03 18:24:00 +01:00
sylviamoss 4f8a27be10 fix linter 2020-12-03 17:11:35 +01:00
sylviamoss 2c10c21445 move plugin discover tests to plugin pkg 2020-12-03 17:07:24 +01:00
Ambrose Chua f5d5e28012
Update step_copy_disk.go (#10333) 2020-12-03 15:30:11 +01:00
Major Hayden 4254fa3581
docs: trivial spelling fix (#10334)
🤗
2020-12-03 15:00:11 +01:00
Megan Marsh 863e20ad65 move builder/testing framework into sdk; it imports the core but I think we just need to accept that. It doesn't expose the core directly to the SDK. 2020-12-02 09:46:42 -08:00
Megan Marsh 196ac12d07
Merge pull request #10325 from hashicorp/move_comm_helper
Move comm helper
2020-12-02 08:52:28 -08:00
Megan Marsh 39354f64e5 move helper/communicator dir into packer-plugin-sdk
fix imports; fix website and generated partials
2020-12-02 08:41:32 -08:00
Megan Marsh ff549e0b23 fix tests 2020-12-02 08:41:31 -08:00
Megan Marsh 307f56f560 move postprocessor to sdk, fix generation code 2020-12-02 08:41:31 -08:00
Megan Marsh b4bc3f1c7b move provisioner interface into sdk 2020-12-02 08:41:31 -08:00
Megan Marsh faa3832537 extract builder interface to sdk 2020-12-02 08:41:31 -08:00
Megan Marsh 179e436670
Merge pull request #10323 from hashicorp/more_sdk
extract builder interface to sdk
2020-12-02 08:40:01 -08:00
jhawk28 89199a4c57
WaitForIP should not return an error if an IP is not found (#10321) 2020-12-02 10:30:42 +01:00
Megan Marsh bf6ab0c290 fix tests 2020-12-01 15:02:15 -08:00
Megan Marsh b69d69095e move postprocessor to sdk, fix generation code 2020-12-01 14:48:55 -08:00
Megan Marsh be5763ec41 move provisioner interface into sdk 2020-12-01 14:25:14 -08:00
Megan Marsh ada91b24e9 extract builder interface to sdk 2020-12-01 13:42:42 -08:00
Megan Marsh fab442eb52
Merge pull request #10289 from hashicorp/extract_ui
Untangle packer/packer
2020-12-01 11:27:21 -08:00
Megan Marsh f8bc406306 update changelog 2020-12-01 11:27:03 -08:00
Megan Marsh edbd483917 fix go-getter imports 2020-12-01 10:59:08 -08:00
Megan Marsh 19bdc8b49e fix conflicts 2020-11-30 14:34:20 -08:00
Megan Marsh 0eff73293a fix imports, vendoring, and linting 2020-11-30 14:30:30 -08:00
Megan Marsh d5971ca25e fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK 2020-11-30 14:30:30 -08:00
Megan Marsh f81ed344a2 regenerate code 2020-11-30 14:30:30 -08:00
Megan Marsh 56a45b04ab Move hook and communicator definitions to packer-plugin-sdk 2020-11-30 14:30:30 -08:00
Megan Marsh a6fdeca099 move logsecretfilter into packer sdk 2020-11-30 14:30:30 -08:00
Megan Marsh 14bdb9516c move Artifact and artifact mock to the sdk 2020-11-30 14:29:52 -08:00
Megan Marsh c70870cb83 move multierror and multierrorappend into sdk 2020-11-30 14:29:06 -08:00
Megan Marsh 001886670d move Ui definition into the packer plugin sdk. 2020-11-30 14:26:54 -08:00
Megan Marsh 47f623a3a5
Merge pull request #10297 from Direnol/yandex/prepare-user-data
support merge cloud user-data
2020-11-30 14:09:23 -08:00
Megan Marsh a56477c2e4
Merge branch 'master' into yandex/prepare-user-data 2020-11-30 13:57:35 -08:00
Megan Marsh ab8d034818
Merge pull request #10292 from adeniyistephen/newfeature
Fix SSH-Private-Key-File to the vsphere-iso mdx file
2020-11-30 13:41:10 -08:00
adeniyistephen1 5ff59be242 Fix SSH-Private-Key-File to the vsphere-iso mdx file 2020-11-30 13:28:10 -08:00
Megan Marsh 862700b1a5
Merge pull request #10306 from bugfood/fix-attach
allow attaching guest additions without a communicator
2020-11-30 10:58:23 -08:00
Megan Marsh c30a80e63d
Merge pull request #10308 from hashicorp/vsphere_clone_docs_10288
Improve vsphere-clone customization example
2020-11-30 10:36:37 -08:00
Megan Marsh 3bda89467d
Merge pull request #10303 from GennadySpb/yndx-export-wait-and-retries
yandex-export: Add retries and wait after disk attach operation
2020-11-30 10:14:25 -08:00
Megan Marsh f40eab4733
Merge pull request #10305 from Direnol/yandex/fix-verify-service-account-id-in-export
added check of service account id in export
2020-11-30 09:39:33 -08:00
Wilken Rivera d82b9d2072
builder/qemu: Add ok check for state values (#10249)
This changes fixes two crashes in `step_run` that expects certain
information to be in state from prior steps. This change requires
testing to ensure the bugs have been fixed.

I believe there may be more state values that need to be checked as they
may not be put into state if a build configuration has attributes that
would skip or otherwise not put data into the statebag.
2020-11-30 10:40:03 -05:00
Gennady Lipenkov 4c3e310f57 manually trigger udev 2020-11-26 17:29:33 +03:00
Gennady Lipenkov ef67fb1cc8 Some wait before check 2020-11-25 15:45:49 +03:00
sylviamoss 6c410e4d13 improve customization example 2020-11-25 10:50:09 +01:00
Corey Hickey fdb36e329d allow attaching guest additions without a communicator
This avoids the error:
* guest_additions_mode has to be 'disable' when communicator = 'none'.

...when the following are set:
"communicator": "none",
"guest_additions_mode": "attach",

This particular combination of parameters is valid; for example, in my
case, a kickstart post-install script mounts the CD image from /dev/sr1
and runs the installer, without needing any intervention from packer
itself.

From my reading of the documentation, it appears that the "upload" mode
would indeed require a communicator, so I change the logic to check for
that specifically.
2020-11-24 15:46:14 -08:00
Roman Mingazeev 677c48d294 add record to changelog 2020-11-24 20:07:52 +03:00
Roman Mingazeev a509781a03 added check of service account id in export 2020-11-24 20:04:37 +03:00
Gennady Lipenkov 138e3a081b Add retries and wait after disk attach operation 2020-11-24 19:15:46 +03:00
Adrien Delorme 73b7499811
HCL2: version block: test validation & document version/availability (#10298)
* HCL2: Test that the packer block passes in packer validate

* HCL2: Test invalid packer blocks are invalid

* docs: state from which version the packer block is available
2020-11-23 10:27:26 -05:00