Commit Graph
17593 Commits
Author SHA1 Message Date
Megan Marsh 06fb597185 import new sdk and fix compatability issues 2021-10-01 14:58:33 -07:00
Adrien Delorme fee561f8ea use the github.com/scaleway/packer-plugin-scaleway now (#11296) 2021-09-29 16:33:58 +02:00
packer-ci 8eac348d97 Putting source back into Dev Mode 2021-09-28 20:27:07 +00:00
packer-ci 6e6aa3f863 Cut version 1.7.6 v1.7.6 2021-09-28 19:55:18 +00:00
packer-ci 55cd239f92 cut version 1.7.6 2021-09-28 19:55:17 +00:00
packer-ci 4c6ddd8bf5 update changelog 2021-09-28 19:55:17 +00:00
Wilken Rivera 4ea4dbd0c4 Update CHANGELOG 2021-09-28 15:40:37 -04:00
Wilken Rivera 2e799fc4ac Update CHANGELOG.md
Add call out for Go 1.17 bump
2021-09-28 15:17:20 -04:00
Wilken Rivera 29d751a17c Merge pull request #11290 from hashicorp/nq.update-alert-banner-hcg2021
Update alert banner for HashiConf Global 2021
2021-09-28 01:36:46 -04:00
Wilken Rivera dbf1380321 Prune go modules file post go 1.17 upgrade (#11282)
```
go mod tidy
```
2021-09-24 17:04:18 +02:00
Noel Quiles 0d9e3eac0f Update alert banner for HashiConf Global 2021 2021-09-18 23:44:51 -04:00
Adrien Delorme 3457ed2312 Fail when an "hcp-packer-image" datasource could not be found (#11268)
* Fail when the Packer Service datasource could not be found

* Update datasource/hcp-packer-image/data.go
2021-09-15 13:53:41 +02:00
packer-ci 63865b4fd6 Putting source back into Dev Mode 2021-09-15 01:07:49 +00:00
packer-ci 881e5f80ba Cut version 1.7.5 v1.7.5 2021-09-14 21:02:51 +00:00
packer-ci aec7ec4ea8 cut version 1.7.5 2021-09-14 21:02:50 +00:00
packer-ci 7b012849fd update changelog 2021-09-14 21:02:50 +00:00
Wilken Rivera 89bf55e364 Merge pull request #11270 from hashicorp/unregister-future-datasource
Unregister packer-image-iteration datasource
2021-09-14 16:44:55 -04:00
Wilken Rivera 0dbc900698 Update CHANGELOG 2021-09-14 16:33:39 -04:00
Wilken Rivera 5c38202b46 Merge pull request #11271 from hashicorp/hcp-packer-registry-doc-changes
hcp packer registry doc changes
2021-09-14 16:27:49 -04:00
Wilken Rivera 05d77c96cf Temporarily remove hcp_packer_registry docs until out of internal beta 2021-09-14 15:58:30 -04:00
Wilken Rivera b2a15e51c7 Rename slug to bucket_name 2021-09-14 15:57:36 -04:00
Wilken Rivera d6a5234412 Unregister packer-image-iteration datasource
This change temporarily renames the type of the packer-image-iteration
datasource to prevent it from being automatically registered by the
Packer plugin tooling. The datasource is fully functional, but not quite
ready for full usage. It will be updated in a future release.
2021-09-14 14:25:48 -04:00
Wilken Rivera b10df3abb7 Update HCP Packer registry image extraction, validation, publishing logic for registry capable plugins (#11221)
* Update handling of registry artifacts

This change uses the github.com/hashicorp/packer-plgin-sdk/packer/registryimage for querying
Artifact State for HCP Registry Image metadata. To handle the conversion
of the RPC response, mapstructure was introduced to conversion state
data into an registryimage.Image before publishing to a image bucket.

* Update to use registry image from packersdk

* Rename internal registry service pkg

* Update vendored plugins to latest version

* The latest release of Amazon, GoogleCompute, and Azure have support
  for publishing images to the HCP Packer registry.
2021-09-13 21:07:54 -04:00
Megan Marsh d9a768094a update changelog 2021-09-08 15:43:05 -07:00
Wilken Rivera 7aa6b699ab Add environment variable precheck for datasource acceptance tests (#11254)
Before change
```
=== Failed
=== FAIL: datasource/hcp-packer-iteration TestAccDatasource_HCPPackerIteration (1.97s)
    pluginacc.go:143: Error running plugin acceptance tests: Bad exit code. Logfile: packer_log_hcp_packer_iteration_datasource_basic_test.txt
        Logs can be found at /Users/wilkenrivera/Development/packer/datasource/hcp-packer-iteration/packer_log_hcp_packer_iteration_datasource_basic_test.txt
        and the acceptance test template can be found at /Users/wilkenrivera/Development/packer/datasource/hcp-packer-iteration/hcp_packer_iteration_datasource_basic_test.pkr.hcl

DONE 690 tests, 5 skipped, 1 failure in 387.912s
```

After change
```
=== SKIP: datasource/hcp-packer-iteration TestAccDatasource_HCPPackerIteration (0.00s)
    data_acc_test.go:35: Acceptance tests skipped unless envs "HCP_CLIENT_ID" and "HCP_CLIENT_SECRET" are set
```
2021-09-08 12:16:33 +02:00
Wilken Rivera 6d0d5c89f3 Update plugin directory check for ci (#11253)
* Update plugin directory check for ci

On CIRCLECI the default plugin direction is under `$HOME/.config/packer`
this changes updates the acctest just a bit to check if we are running
in a CIRCLECI env.

* Apply same logic to cleanup step
2021-09-07 16:14:59 -04:00
Matthieu MORELandWilken Rivera 079a680492 Update golangci to v1.42.0 (#11252)
* Update Makefile

* Update .golangci.yml

Remove comment as version pinning is no longer needed.

Co-authored-by: Wilken Rivera <[email protected]>
2021-09-07 16:13:50 -04:00
Megan Marsh 9123c87027 Merge pull request #11246 from hashicorp/new_data_sources
New data sources
2021-09-07 10:35:12 -07:00
Megan Marsh c25c27b6b6 add docs pages for new data sources 2021-09-07 10:27:25 -07:00
Megan Marsh f7e568f919 Merge pull request #11248 from hashicorp/data_source_dependencies
allow datasources to use other datasources
2021-09-07 09:37:46 -07:00
Megan Marsh 6c7aadf08f return diags earlier 2021-09-07 09:26:53 -07:00
Megan Marsh 295bac0c5f remove unnecessary complexity 2021-09-07 09:21:00 -07:00
Megan Marsh 20a83dff4f remove unneeded check. 2021-09-07 07:47:39 -07:00
Megan Marsh 48de1fc7da allow datasources to use other datasources
create a null data source for testing. We can choose to document if we want to, but it's a convenience for us

add a test to catch cyclic datasource dependency, update tests to include out of order data sources, and update the code to clean up the returned diagnostics generated from the recursive evaluation

PR review comments
2021-09-03 16:10:39 -07:00
Megan Marsh 9cab184006 tidied modfile 2021-09-03 16:05:13 -07:00
Megan Marsh fd80f8da8c Add two new data sources -- hcp-packer-iteration and hcp-packer-image. These data sources together will allow users to query hcp_packer for the image_ids they need to use as source images to their builds, with a simple UI and clear outputs.
add quick and dirty acceptance test for hcp packer image iteration and hcp packer image data sources
PR review
linting
2021-09-03 15:51:09 -07:00
Adrien Delorme 27d89ac8d4 update all plugins + pin go to go 1.17 (#11237)
* up plugins and get rid of a dependency loop from packer to packer
2021-09-02 12:15:13 +02:00
Kevin Wang 8e026209da fix(website): start script reloads app on save (#11244) 2021-09-01 17:07:39 -04:00
Megan Marsh d6792820f4 Merge pull request #11227 from hashicorp/hcp_data_source
Implement hcp packer data source.
2021-08-31 09:33:48 -07:00
Adrien DelormeandSylvia Moss 9bdeb84cda Clarify what the labels of a source block do. (#11236)
Co-authored-by: Sylvia Moss <[email protected]>
2021-08-31 16:13:47 +02:00
Adrien Delorme c083b53c4f packer fix: state that the command does not work for hcl files (#11238) 2021-08-31 16:12:47 +02:00
Adrien Delorme d25373a8d6 move inspec provisioner out (#11230) 2021-08-31 12:07:26 +02:00
Adrien Delorme acb01cb800 move salt-masterless provisioner out (#11229)
* move salt-masterless provisioner out
* go get github.com/hashicorp/packer-plugin-salt
2021-08-31 12:07:10 +02:00
Florian Sommerfeld eb39a3120e Fix typo in autounattend_windows.mdx (#11233) 2021-08-31 10:46:07 +02:00
xaxo05 8f158e02ad Bump module packer-plugin-googlecompute version to v1.0.2. (#11235) 2021-08-31 10:28:49 +02:00
Megan Marsh 60b734733b reworked docs, and created docs page. Not adding to the website index because we don't want this doc page live until after the HCP Packer registry enters public beta 2021-08-30 16:27:08 -07:00
Megan Marsh c0eb830c42 better docstrings and regenerate docs 2021-08-30 15:53:29 -07:00
Megan Marsh 980deeb684 Implement hcp packer data source. This is a rough copy of the terraform provider's data source, to make beta user experience consistent across both sources 2021-08-27 12:03:55 -07:00
Megan Marsh 2d16da10e7 Merge pull request #11219 from hashicorp/rename_slug_to_bucket
make user-facing name for slug be bucket_name
2021-08-27 09:36:30 -07:00
Pamela Bortnick 6efee459fb Update social share image (#11226)
* Update social share image

* Remove unecessary files
2021-08-26 17:09:39 -04:00