Megan Marsh
cac6b04546
update help text for hcl2_upgrade ( #10624 )
2021-02-15 11:03:44 +01:00
Megan Marsh
80ed988ffe
Hcl2 upgrade fix ( #10625 )
...
* fix random nil pointer dereference I found while debugging hcl2_upgrade issues
* fix hcl2_upgrade command by creating passthroughs for all text template fields
2021-02-15 10:40:21 +01:00
Megan Marsh
b20dea6aec
Merge pull request #10614 from hashicorp/azr_acc_test_old_single_component_plugins
...
Acc test "old style" single component plugins
2021-02-12 14:22:29 -08:00
sylviamoss
e69410b633
fix lint
2021-02-12 15:38:44 +01:00
sylviamoss
855ba9775a
add docs
2021-02-12 15:31:13 +01:00
sylviamoss
76e3d57cae
add with-annotation flag to hcl2_upgrade
2021-02-12 15:18:53 +01:00
Adrien Delorme
7089e0854a
rename setup func to avoid name conflict
2021-02-11 18:00:18 +01:00
Adrien Delorme
40c2b2a153
add manually-installed-single-component-plugin-old-api-fails
2021-02-11 16:55:30 +01:00
Adrien Delorme
3677069010
test: manually-installed-single-component-plugin-works
2021-02-11 16:35:08 +01:00
Adrien Delorme
b321c64c1e
Update init_test.go
2021-02-11 15:26:33 +01:00
Adrien Delorme
ad0ce49cec
fix tmpdir creation
2021-02-11 15:17:05 +01:00
Adrien Delorme
021044e963
put name first
2021-02-11 14:56:42 +01:00
Adrien Delorme
ba8484ee6b
tests: pre make dir in case nothing happens
2021-02-11 14:49:52 +01:00
Adrien Delorme
3052e3c5d5
tests
2021-02-11 14:46:53 +01:00
Sylvia Moss
774c5903f6
Add error-cleanup-provisioner to HCL2 ( #10604 )
2021-02-11 10:23:15 +01:00
Sylvia Moss
d28e6fe009
write timestamp local only when necessary ( #10602 )
2021-02-10 14:54:19 +01:00
Adrien Delorme
ffbb110167
Test running plugins with fake and fresh plugins ( #10595 )
...
* show error as to why plugin discovery failed
* allow to run more manual tests after a plugin installation
* test that a freshly installed external plugin can run
2021-02-09 17:07:59 +01:00
Sylvia Moss
f5006d0842
fix empty locals and source name with blank space ( #10593 )
2021-02-09 14:57:42 +01:00
Sylvia Moss
d53488db68
Add aws_secretsmanager transformation to hcl2_upgrade ( #10553 )
2021-02-08 11:28:26 +01:00
Adrien Delorme
692433721d
Add some acceptance testing for Packer init commands ( #10566 )
2021-02-05 14:06:28 +01:00
Sylvia Moss
ef4afafde9
Fix force flag for hcl2 provisioners and post-processors ( #10571 )
2021-02-05 10:57:14 +01:00
Adrien Delorme
92ccd5fa1d
init: show successful installs in cyan ( #10557 )
2021-02-04 11:11:42 +01:00
Adrien Delorme
ed091163be
HCL2 Parse packer.required_plugins block + packer init ( #10304 )
...
This adds the new `required_plugins` block to be nested under the packer block.
Example:
```hcl
packer {
required_plugins {
aws = {
version = ">= 2.7.0"
source = "azr/aws"
}
azure = ">= 2.7.0"
}
}
```
For example on darwin_amd64 Packer will install those under :
* "${PACKER_HOME_DIR}/plugin/github.com/azr/amazon/packer-plugin-amazon_2.7.0_x5.0_darwin_amd64"
* "${PACKER_HOME_DIR}/plugin/github.com/hashicorp/azure/packer-plugin-azure_2.7.0_x5.0_darwin_amd64_x5"
+ docs
+ tests
2021-02-02 18:05:04 +01:00
Sylvia Moss
d1ada744e1
Aws Secrets Manager data sources ( #10505 )
2021-01-22 14:49:45 +01:00
Megan Marsh
93008045cd
Merge pull request #10500 from hashicorp/format_stdin
...
enable Packer fmt to read from stdin
2021-01-20 11:47:55 -08:00
Sylvia Moss
3c7944624a
(3) Add amazon-ami data source ( #10467 )
2021-01-20 11:05:03 +01:00
Sylvia Moss
291121dd55
(2) Implement datasources ( #10440 )
2021-01-20 10:37:16 +01:00
Megan Marsh
4323b49130
enable Packer fmt to read from stdin
2021-01-19 15:30:34 -08:00
Sylvia Moss
e44cb9d7e5
Add Amazon AMI data source to hcl_upgrade command ( #10491 )
2021-01-19 10:21:39 +01:00
Megan Marsh
4cb6e07900
Hcl beta tag ( #10493 )
...
* change beta tag
* remove beta tag from hcl2_upgrade comment
* add a partial to describe the legacy json limitations
* exclude legacy category from templates until it is deployed to the website
2021-01-18 15:08:04 +01:00
Megan Marsh
54a75421ea
regenerate
2021-01-15 11:59:36 -08:00
Megan Marsh
1cb9aea752
change markdown references to new pathing
2021-01-15 11:59:36 -08:00
Adrien Delorme
52d2d7fe5f
Copy `MapOf...` plugin types back into Packer core ( #10466 )
...
* move maps of plugins back in core
* go mod vendor
* more fixes
* fix imports
* Update core_test.go
* fix build
* more fixes
* more fixes
* up vendors after fixing sdk
* Update post_processor_mock.hcl2spec.go
* Leave implementatino of MapOf in the sdk for plugi tests
Other wise use the interface
* go mod tidy
* add MapOfDatasource type too
2021-01-13 12:14:06 +01:00
Tristan Watson
17c806fbf5
Removing obsolete packer HCL warnings from CLI for validate and command ( #10461 )
2021-01-11 11:50:23 +01:00
Megan Marsh
88b7b0e14a
remove sdk
2020-12-17 13:29:25 -08:00
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
Megan Marsh
39ab646236
move plugin and rpc code into sdk; other minor tweaks ( #10359 )
2020-12-09 12:39:54 +01:00
Megan Marsh
5576bb5caa
move packer config constants next to the packer config
2020-12-03 10:17:35 -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
d5971ca25e
fix tests by moving mock hooks and communicators, and BasicUi definition, into SDK
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
14bdb9516c
move Artifact and artifact mock to the sdk
2020-11-30 14:29:52 -08:00
Megan Marsh
001886670d
move Ui definition into the packer plugin sdk.
2020-11-30 14:26:54 -08: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
Megan Marsh
6a1a22151c
move the various flag packages from helper to command, since command is the only package that uses them.
2020-11-16 14:23:35 -08:00
Megan Marsh
efe11da4a3
Merge pull request #10254 from hashicorp/plugin-sdk-2
...
Plugin sdk 2
2020-11-16 11:29:20 -08:00
Megan Marsh
3e54e9ea80
Merge pull request #10235 from hashicorp/refactor_version_code
...
Refactor version code
2020-11-16 11:12:59 -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