Commit Graph
18526 Commits
Author SHA1 Message Date
Kevin Wang b3a3536068 fix: backport target (#11491) 2022-01-11 17:46:32 -05:00
Kevin Wang dd322819e9 fix(website): handle multiple redirects for plugin repos (#11488) 2022-01-11 13:47:39 -05:00
b3341164cf feat: extract /plugins (#11464)
* feat: extract `/plugins`

Co-authored-by: Zachary Shilton <[email protected]>
Co-authored-by: Adrien Delorme <[email protected]>
2022-01-11 10:26:05 -05:00
Kevin WangandBryce Kalow e062f69a89 feat: backport.yaml (#11447)
* feat: backport.yaml

* Update .github/workflows/backport.yml

Co-authored-by: Bryce Kalow <[email protected]>
2022-01-11 10:20:02 -05:00
Jenna Goldstrich 6b2c527b7a Merge pull request #11480 from hashicorp/jenna/update-plugins
Run ./scripts/update-plugins and go mod tidy
2022-01-05 08:20:12 -08:00
Jenna Goldstrich d284885442 Run ./scripts/update-plugins and go mod tidy 2022-01-04 16:29:05 -08:00
Noel Quiles 4b592ac40b website: Upgrade deps (#11470) 2021-12-23 11:38:19 -05:00
Noel Quiles 2c3a3c8794 Update @hashicorp/react-subnav (#11463) 2021-12-20 11:14:41 +01:00
Wilken Rivera 41e5551dc6 Update CHANGELOG 2021-12-17 15:27:48 -05:00
Wilken Rivera d4b4bb9205 Bump github.com/hashicorp/packer-plugin-sdk from 0.2.9 to 0.2.11 (#11459) 2021-12-17 14:50:01 -05:00
Wilken Rivera b6f02d3f77 Update handling of image metadata before pushing to registry (#11458)
When obtaining image metadata for a HCP Packer build, Packer core will
use mapstructure to decode the image metadata and validate that is has
all of the required data set. Before this change Packer core would fail
if there is extra metadata fields in the image metadata that Packer is
  not aware.

This change removes the restriction of erroring on unused metadata
fields. Packer should only care about the fields it knows and ignore the
rest. In the future, we will add new fields to the SDK but plugins may
begin sending that data sooner.
2021-12-17 13:34:44 -05:00
Wilken Rivera 6176d79913 Add HCP Packer Ready badge to support plugins (#11456) 2021-12-17 12:17:27 -05:00
Sylvia Moss ef41e7506e add packer user agent to HCP client (#11455) 2021-12-17 17:59:46 +01:00
Zachary Shilton 63eaf1f99b feat(website): add version badge to external plugin docs pages (#11451) 2021-12-17 10:47:43 -05:00
Zachary ShiltonandWilken Rivera cae7bd9e5b feat(website): add official and HCP Packer Ready labels (#11449)
* refactor(website): use prop and CSS for plugin label spacing

* fix: add official tier label to built-in plugin docs

* feat(website): add BadgesHeader component

* refactor(website): use BadgesHeader in all content

* feat(website): add HCP ready demo, tweak badge look

* refactor: integrate work from add-plugin-version branch

* fix(website): correct bad import

* fix: use updated MDX custom component

* chore: remove plugin version label work from this branch

* chore: remove unused var

* fix: use new BadgesHeader interface for dual tags

* chore: remove unused var, refine comment

* fix: remove unused broken import

* fix: shorten property for HCP packer readiness

* Apply suggestions from code review

Remove a few demo labels before merging

Co-authored-by: Wilken Rivera <[email protected]>
2021-12-17 10:22:16 -05:00
Noel Quiles cf121d899e chore: Disable alert banner (#11452) 2021-12-16 15:22:59 -05:00
Jenna Goldstrich 479a5ca813 Merge pull request #11448 from hashicorp/change-packer-install-instructions-contributing
Update Contributor docs to clone repo instead of go get packer
2021-12-15 10:38:04 -08:00
Jenna Goldstrich 43c238c13c Update Contributor docs to clone repo instead of go get packer 2021-12-15 10:03:07 -08:00
Noel Quiles 6618eb2e34 Update Dockerfile (#11446) 2021-12-14 10:12:28 -05:00
Alex Carpenter daa57fdc31 fix: redirects /home to / (#11445) 2021-12-14 12:22:36 +01:00
dependabot[bot] 799a5873c0 Bump next from 11.1.2 to 11.1.3 in /website (#11439)
Bumps [next](https://github.com/vercel/next.js) from 11.1.2 to 11.1.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.1.2...v11.1.3)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-12 19:30:02 -05:00
Wilken Rivera 9f86de317b Update agains to against in the note section 2021-12-12 06:29:50 -05:00
Felipe Crescencio de OliveiraandWilken Rivera 2a8001cd87 Fix docs about running specific provisioners (#11442)
* Fix docs about running specific provisioners

* Update website/content/docs/templates/hcl_templates/blocks/build/provisioner.mdx

Co-authored-by: Wilken Rivera <[email protected]>
2021-12-12 06:27:39 -05:00
Mike Wickett 670bcfa5a0 update alert banner content (#11441) 2021-12-09 12:10:26 -05:00
Wilken Rivera 9b2f520b2d Fix basic datasource acceptance test flakiness (#11438)
This change sets a region on the test datasource config to fix intermittent InvalidAMIID.NotFound errors.

Closes https://github.com/hashicorp/packer-internal-issues/issues/14

Failing results before change

```
> AWS_DEFAULT_REGION=us-west-1 make testacc
=== RUN   TestAccInitAndBuildBasicAmazonAmiDatasource
2021/12/07 20:40:05 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2021/12/07 20:40:05 Found region us-west-1
2021/12/07 20:40:05 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
    pluginacc.go:143: Error running plugin acceptance tests: Bad exit code. Logfile: packer_log_amazon-ami_basic_datasource_test.txt
        Logs can be found at /Users/wilkenrivera/Development/packer/acctest/plugin/packer_log_amazon-ami_basic_datasource_test.txt
        and the acceptance test template can be found at /Users/wilkenrivera/Development/packer/acctest/plugin/amazon-ami_basic_datasource_test.pkr.hcl
--- FAIL: TestAccInitAndBuildBasicAmazonAmiDatasource (9.87s)
FAIL
FAIL    github.com/hashicorp/packer/acctest/plugin      10.326s
```

Passing results after change
```
> AWS_DEFAULT_REGION=us-west-1 make testacc
=== RUN   TestAccInitAndBuildBasicAmazonAmiDatasource
2021/12/07 20:47:28 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2021/12/07 20:47:28 Found region us-west-1
2021/12/07 20:47:28 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
--- PASS: TestAccInitAndBuildBasicAmazonAmiDatasource (223.32s)
PASS

```
2021-12-08 10:13:16 +01:00
Noel Quiles 3661155b74 website: Upgrade <HashiStackMenu /> to latest (#11433) 2021-12-07 17:11:28 -05:00
Wilken Rivera 42b346568e Update all external plugins to their latest available version (#11435)
```
./scripts/upgrade_plugins.sh
go mod tidy
```
2021-12-07 15:14:16 -05:00
Wilken Rivera 760169b34e Move to using ectx to preload build names (#11432)
* Add basic post-processor test

Closes #11411
2021-12-07 12:24:12 +01:00
Wilken Rivera 58fa1f96e2 Temporarily revert the use of indirect redirects for external plugins (#11430)
The auto installation of external plugins via packer init only work for
HCL templates. Since we have not officially removed all plugins (slated
for 1.8.0) I am reverting this test change. Once 1.7.9 is released we
  can begin removing plugins and optimizing the redirect experience for
  JSON-only users.
2021-12-06 10:55:49 -05:00
Wilken Rivera 0188d63d5a Update CHANGELOG 2021-12-03 12:49:53 -05:00
Adrien Delorme c4cc925da9 pull outscale docs from the freshly moved away outscale repo (#11428) 2021-12-02 13:52:58 -05:00
dependabot[bot] b3c1969ad1 Bump github.com/hashicorp/hcl/v2 from 2.10.1 to 2.11.1 (#11426)
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.10.1 to 2.11.1.
- [Release notes](https://github.com/hashicorp/hcl/releases)
- [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcl/compare/v2.10.1...v2.11.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcl/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 14:05:45 +01:00
Adrien Delorme 3278c1a817 Packer SVC acc tests (#11274) 2021-12-01 15:58:33 +01:00
Wilken Rivera 4a0fbd911a Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421)
* Add variable interpolation support to hcp_packer_registry block

* Add tests for variable interpolation in hcp_packer_registry block

* Add variable interpolation support to the build block (#11425)

* Add simple test to build command
2021-12-01 11:35:51 +01:00
Adrien Delorme a2124eb594 Tiny tweaks and fixes for the PowerShell provisioner (#11410)
* add docs
* fix potential bug
2021-11-23 12:34:26 +01:00
Wilken Rivera 55b49cdb6f Update output directory used in TestArchive (#11406)
This change uses a different  as part of the TestArchive output path to fix
an intermittently failing test case on Windows caused by using the same
output name across test cases.

Originally tired to use t.TempDir() to gt a temp path but ran into
errors with parsing the config on Windows.

```
Unable to parse test config: invalid character 'U' in string escape code
```
2021-11-22 13:08:29 -05:00
Wilken Rivera 09b29bc4c0 Add a little specificity to the use of dynamic blocks (#11404) 2021-11-19 11:59:03 +01:00
Wilken Rivera 41e6f760d9 Add details on the expected contents of a variable definitions file (#11403)
Closes #10903
2021-11-19 11:58:08 +01:00
Wilken RiveraandAdrien Delorme 06b35c39de hcp packer registry build labels (#11401)
* Add basic support for build_labels argument

* Update support for build_labels configuration argument

* Update complete test-fixture with a build_labels configuration
* Add test for deprecated labels argument
* Add deprecation for hcp_packer_registry.labels

When using the now deprecated labels argument of the new bucket_labels a
Warning will be presented to the user.

```
~>  HCP_PACKER_BUILD_FINGERPRINT=356786543567865456789656789 packer
build source.pkr.hcl
Warning: the argument hcp_packer_registry.labels has been deprecated and will be removed in a future release; please use hcp_packer_registry.bucket_labels
```

When trying to use both bucket_labels and labels together an error is
presented to the user.
```
~>  HCP_PACKER_BUILD_FINGERPRINT=ss6786543567865456789656789 packer
build source.pkr.hcl
Error: hcp_packer_registry.labels and hcp_packer_registry.bucket_labels are mutely exclusive; please use the recommended argument hcp_packer_registry.bucket_labels

  on source.pkr.hcl line 17:
    (source code not available)

```

* Update documentation for build_labels

* Apply suggestions from code review

Co-authored-by: Adrien Delorme <[email protected]>

* Update hcl2template/types.build.hcp_packer_registry.go

Co-authored-by: Adrien Delorme <[email protected]>
2021-11-18 09:40:08 +01:00
Wilken Rivera acd67d5ba0 Bump issues-labeler to proper version 2021-11-16 11:36:19 -05:00
Ethan Davidson 1b949085d4 Add git plugin (#11395) 2021-11-15 12:11:56 +01:00
dependabot[bot] effc803ac5 Bump github.com/hashicorp/packer-plugin-sdk from 0.2.8 to 0.2.9 (#11394)
Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/hashicorp/packer-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/packer-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/packer-plugin-sdk/compare/v0.2.8...v0.2.9)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/packer-plugin-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 14:50:53 -05:00
dependabot[bot] 3cac8d3121 Bump github.com/hashicorp/packer-plugin-sdk from 0.2.7 to 0.2.8 (#11391)
Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/hashicorp/packer-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/packer-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/packer-plugin-sdk/compare/v0.2.7...v0.2.8)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/packer-plugin-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-10 21:36:41 -05:00
Wilken Rivera fe2d302421 Bump Packer plugin program navigation up one level (#11390)
* Bump Packer plugin program navigation up one level

* Fix file path
2021-11-10 14:28:18 -05:00
Sylvia MossandWilken Rivera d8a5ae729f Add docs for plugins HCP Packer support (#11389)
* add docs hcp support for plugins

* fix golang format

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* improve docs

* change page title

* Apply suggestions from code review

Co-authored-by: Wilken Rivera <[email protected]>
2021-11-10 13:11:29 -05:00
Wilken Rivera a70aaf0d48 Update README.md
Update text to include potential archival step.
2021-11-09 16:06:03 -05:00
Adrien Delorme 710d109c55 HCL2: fix a crash when an HCL2 component is nil after a misconfiguration (#11382)
* add test for crash

* fix

* show more precise error message when parse of a provisioner fails

* Revert "fix"

This reverts commit fc88e89fbb.

* add better severity
2021-11-04 10:08:27 -04:00
dependabot[bot] e0ac45e264 Bump github.com/zclconf/go-cty from 1.9.1 to 1.10.0
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md)
- [Commits](https://github.com/zclconf/go-cty/compare/v1.9.1...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/zclconf/go-cty
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2021-11-04 13:14:14 +00:00
Elio B 2ff9bd5748 Fix typo (#11374) 2021-11-04 14:14:00 +01:00
Kevin Wang a9fdc19990 chore: react-subnav (#11378) 2021-11-03 17:36:19 -04:00