Megan Marsh
88b7b0e14a
remove sdk
2020-12-17 13:29:25 -08:00
Megan Marsh
5f34bbd56e
add extra line before package declaration so this line does not become the synopsis of a package for godoc
2020-12-16 15:14:43 -08:00
Adrien Delorme
72c1912b60
allow to discover & start packer-plugin-* muliplugin binaries ( #10277 )
...
This add :
* discovery of `packer-plugin-*` binaries from the known folders and ask them to describe themselves
* tests
For testing: in go we create a bash script that in turn calls back to Go. I could not make the tests to work on windows and then would like to postpone testing this for when we know more about the finite layout of this feature. That is mainly: how things are going to work with init, versioning and such.
2020-12-15 10:58:09 +01:00
Megan Marsh
39ab646236
move plugin and rpc code into sdk; other minor tweaks ( #10359 )
2020-12-09 12:39:54 +01: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
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
Megan Marsh
3681e2a7ee
fix pathing
2020-12-03 10:39:21 -08:00
Megan Marsh
d767c69ed3
rebase and fix conflicts
...
fix tests
2020-12-03 10:26:48 -08:00
Megan Marsh
5576bb5caa
move packer config constants next to the packer config
2020-12-03 10:17:35 -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
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
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
9e47696dff
move helper/config to bundle with the other template definitions
2020-11-18 10:34:59 -08:00
Megan Marsh
7d658149ea
update tests and website and generated partials to reflect new package format
2020-11-17 10:36:01 -08:00
Megan Marsh
1ffc358ada
move tmp helper func into packer-plugin-sdk
2020-11-16 15:13:08 -08:00
Megan Marsh
6402362018
create packer-plugin-sdk directory and begin moving the relevant folders into it.
2020-11-13 10:47:36 -08:00
Megan Marsh
1ecd715221
refactor code so that packer/version is not a dependency of sdk code or plugin code
2020-11-09 17:20:42 -08:00
Megan Marsh
cd59d938b2
refactor core version pkg imports out of json interpolation/decode pathway.
2020-11-09 13:20:36 -08:00
Megan Marsh
bc85854a53
refactor packer version out of hcltemplate code.
2020-11-09 12:29:53 -08:00
Megan Marsh
cd74456026
Common provisioner helpers ( #10229 )
...
* update docstrings to make it clear that plugins are servers and core is client
* move provisioner guest helper functions into common dir.
2020-11-09 12:16:44 +01:00
Megan Marsh
2d90ffe7a4
move GeneratedData struct and PlaceholderMsg to same package under common
2020-11-06 10:45:38 -08:00
Megan Marsh
721cbac645
Merge pull request #9996 from hashicorp/fix_9995
...
Make shell-local post-processor return copy of previous artifact
2020-10-05 13:00:51 -07:00
Adrien Delorme
9f97173371
PostProcessorServer.PostProcess: don't close the artifact we are serving
...
Sometimes, the artifact returned by PostProcess is the artifact from client.Artifact() and in that case we don't want to close client; otherwise the outcome is sort of undetermined. See #9995 for a good test file.
fix #9995
2020-10-05 14:27:55 +02:00
Adrien Delorme
a9107a8fe9
noop progress bar is nil progress bar
2020-09-24 12:26:09 +02:00
Megan Marsh
15ee44e857
review comments
2020-09-23 11:33:51 -07:00
Megan Marsh
ae8d359bf1
Switch to explicitly declaring TrackProgress on UI, using an underlying progress bar specifically stored on the struct. Export UiProgressTracker. These changes allow us to optionaly switch to the NoopProgressTracker when no TTY is set.
2020-09-21 16:05:14 -07:00
Rui Lopes
281af9a03d
prefer $APPDATA over $HOME in Windows ( #9830 )
2020-08-31 14:35:15 +02:00
Megan Marsh
c88ff4ec45
add colored prefix to progress tracker bar so it's clearer what build an uploading file belongs to ( #9780 )
2020-08-17 14:32:13 -04:00
Sathyajith Bhat
9c8daed65e
Fix typo in error message ( #9775 )
...
If a variable has not been passed, the error message shown has a tiny typo (varaibles instead of variables)
2020-08-16 21:39:08 -04:00
sylviamoss
6d0b5a6957
skip post-processors when build is cancelled
2020-08-06 14:40:02 +02:00
Sylvia Moss
9181a435aa
Make max_retries a string to allow variable interpolation ( #9673 )
2020-08-05 17:41:20 +02:00
Adrien Delorme
44616d3bff
refactor initialization out from packer configs + tests ( #9627 )
...
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost.
This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too.
fix #9478
2020-07-24 10:58:03 +02:00
Gennady Lipenkov
4cd1950cd0
fix typo
2020-07-09 16:21:21 +03:00
Adrien Delorme
3fb7ddf509
Update provisioner.go
2020-07-07 11:52:08 +02:00
Adrien Delorme
ab54f48247
add BuilderDataCommonKeys var to see what common keys a builder can return
2020-07-07 11:28:07 +02:00
Adrien Delorme
1b669ff2ab
woops
2020-07-06 11:18:02 +02:00
Adrien Delorme
db6c3adbba
add hcl2 provisioner type that reprepares itself
2020-07-02 18:02:19 +02:00
Adrien Delorme
7969b690de
Revert "Share build info with Provisioner and Post-Processor via HCL2 variables ( #9444 )"
...
This reverts commit 99046c9178
.
2020-07-02 15:07:29 +02:00