Commit Graph
18303 Commits
Author SHA1 Message Date
Wilken Rivera 290fb9d908 Update CHANGELOG 2023-04-06 16:51:48 -04:00
Ernst-Christian Kloeden 8d93b3fbd4 website: fix typo in documentation of validate command (#12344) 2023-04-05 09:52:10 -04:00
Wilken Rivera f678c06396 Migrate external UCloud plugin to ucloud/packer-plugin-ucloud (#12335)
* Update external plugin documentation source

The UCloud plugin for Packer is now maintained by the UCloud team, under
their respective GitHub org. This changes updates the source address for
the external plugin that should be used for pulling new plugin
documentation.

* Remove packer-plugin-ucloud from vendored plugins.
2023-04-04 20:47:47 -04:00
Chris GriggsandLucas Bajolet 004471835a Update website/data/plugins-manifest.json
adding comma!

Co-authored-by: Lucas Bajolet <[email protected]>
2023-03-30 14:21:37 -04:00
Chris Griggs 93aef96924 Update Outscale plugin HCP Ready tag
Adding the HCP Ready tag to the Outscale plugin. The HCP compatibility was added in this PR: https://github.com/outscale/packer-plugin-outscale/pull/70
2023-03-30 14:21:37 -04:00
dependabot[bot] 0112eef059 build(deps): bump actions/setup-go from 2 to 4 (#12316)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 12:46:40 -04:00
dependabot[bot] 1dd0814e64 build(deps): bump github/issue-labeler from 3.0 to 3.1 (#12328)
Bumps [github/issue-labeler](https://github.com/github/issue-labeler) from 3.0 to 3.1.
- [Release notes](https://github.com/github/issue-labeler/releases)
- [Commits](https://github.com/github/issue-labeler/compare/v3.0...v3.1)

---
updated-dependencies:
- dependency-name: github/issue-labeler
  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>
2023-03-29 12:44:15 -04:00
Wilken Rivera 20c2d48df7 Migrate external Linode plugin to linode/packer-plugin-linode (#12329)
* Update external plugin documentation source

The Linode plugin for Packer is now maintained by the Linode team, under
their respective GitHub org. This changes updates the source address for
the external plugin that should be used for pulling new plugin
documentation.

* Removed packer-plugin-linode for list of vendored plugins

The Linode plugin for Packer is now maintained by the Linode team, under
their respective GitHub org. This changes removes Linode from the vendored plugins
lists.
2023-03-29 12:43:50 -04:00
Bryce Kalow fc0ed29264 website: adds content-check command and README update (#12317) 2023-03-21 14:49:21 -05:00
Alan Szlosek Jr 6d6727b42b add meta descriptions (#12315)
* add meta descriptions

* rework

* tweak

* clean up hcl description

* gt dash
2023-03-16 10:05:18 -04:00
xuyaming0800 1d455cd1e3 Register documentation for Volcengine plugin (#12202) 2023-03-13 15:46:23 -04:00
Ilya Lukyanov fb17f149f8 Add external data source plugin as a community integration (#12150) 2023-03-11 09:42:18 -05:00
dependabot[bot] d7fdc9a9ec build(deps): bump github.com/hashicorp/packer-plugin-sdk (#12306)
Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.3.4 to 0.4.0.
- [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.3.4...v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/packer-plugin-sdk
  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>
2023-03-10 17:53:28 -05:00
dependabot[bot] 512ef1ae39 build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.34.0 to 0.36.0 (#12292)
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.34.0 to 0.36.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.34.0...v0.36.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  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>
2023-03-08 11:46:18 -05:00
dependabot[bot] bdf67c301c build(deps): bump aws-actions/configure-aws-credentials from 1 to 2 (#12302)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1 to 2.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1...v2)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 11:45:36 -05:00
Ashlee M Boyer 5c5e15f5e4 Merge pull request #12300 from hashicorp/ashleemboyer-patch-1
Delete test-link-rewrites.yml
2023-03-06 16:06:52 -05:00
Ashlee M Boyer 80723ad988 Delete test-link-rewrites.yml 2023-03-06 15:24:52 -05:00
hashicorp-copywrite[bot] b7df3ca36f [COMPLIANCE] Add Copyright and License Headers (#12254)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-03-02 15:37:05 -05:00
Wilken Rivera 245df57ca6 Update golang.org/x/net to address GO-2023-1571
```
  » Go Modules Scanner
    ⚠︎ found OSV reported vulnerability GHSA-vvpx-j8f3-3w6h in golang.org/x/[email protected]
    ⚠︎ found OSV reported vulnerability GO-2023-1571 in golang.org/x/[email protected]
```
2023-03-01 16:48:53 -05:00
dependabot[bot] cdc75a91c2 build(deps): bump github/issue-labeler from 2.6 to 3.0 (#12261)
Bumps [github/issue-labeler](https://github.com/github/issue-labeler) from 2.6 to 3.0.
- [Release notes](https://github.com/github/issue-labeler/releases)
- [Commits](https://github.com/github/issue-labeler/compare/v2.6...v3.0)

---
updated-dependencies:
- dependency-name: github/issue-labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 16:17:30 -05:00
Wilken Rivera be6bf9dadd website: Update plugin tier for Nutanix to partner verified (#12291) 2023-03-01 16:16:43 -05:00
Wilken Rivera 8f67444311 Update JSON template does not return substitute values in 1.8.6 version (#12290)
This change fixes a regression introduced in Packer 1.8.6, where configurations custom builder names
, via the name attribute, would internally interpolate the proper build names, but would display the
name to STDOUT as uninterpolated values. The change updates the creation of a CoreBuild for legacy JSON templates
to use use the interpolated name as the final build type, which gets rendered to the screen.

Test Results Before Fix
```
~>  go test ./... -run='TestCoreBuild_buildNameIntepolation' -v
--- FAIL: TestCoreBuild_buildTypeIntepolation (0.01s)
    core_test.go:930: build type interpolation failed; expected "test.mybuild-RandomToken", got "test.{{user `build_name`}}"
    core_test.go:930: build type interpolation failed; expected "test.build-vardata", got "test.{{user `build_name`}}"
    core_test.go:930: build type interpolation failed; expected "test.build-12345", got "test.{{user `build_name`}}"
FAIL
```

Test Results After Fix
```
~>  go test ./... -run='TestCoreBuild_buildNameIntepolation' -v
=== RUN   TestCoreBuild_buildTypeIntepolation
--- PASS: TestCoreBuild_buildTypeIntepolation (0.01s)
PASS
```

Closes #12281
2023-03-01 15:19:44 -05:00
Wilken Rivera 5652c2f593 CHANGELOG: Add HCP Packer description regression fix 2023-02-15 16:24:16 -05:00
Wilken Rivera b589d0f583 Update CHANGELOG 2023-02-15 16:15:09 -05:00
Wilken Rivera fd3ab4710d Bump bundled plugins to latest available version (#12271) 2023-02-15 10:24:39 -05:00
dependabot[bot] f82d93d9ac build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.33.0 to 0.34.0 (#12262)
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  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>
2023-02-14 20:34:35 -05:00
Wilken Rivera b3a1e98889 Update github.com/hashicorp/go-getter/v2 pkgs to address CVE-2023-0475 2023-02-14 16:08:24 -05:00
dependabot[bot] ab90025dc2 build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.31.0 to 0.33.0
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.31.0 to 0.33.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.31.0...v0.33.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-02-09 11:49:12 -05:00
dependabot[bot] 8a3caa1599 build(deps): bump hashicorp/actions-go-build from 0.1.7 to 0.1.9
Bumps [hashicorp/actions-go-build](https://github.com/hashicorp/actions-go-build) from 0.1.7 to 0.1.9.
- [Release notes](https://github.com/hashicorp/actions-go-build/releases)
- [Changelog](https://github.com/hashicorp/actions-go-build/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/actions-go-build/compare/v0.1.7...v0.1.9)

---
updated-dependencies:
- dependency-name: hashicorp/actions-go-build
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-02-09 11:48:33 -05:00
Wilken Rivera 40557017e0 Update CHANGELOG for 1.8.6 and 1.9.0 2023-02-08 15:47:48 -05:00
Wilken Rivera a00eed90f4 Update instance runner for workflow
Small Linux runners are only supported within on-prem actions. This
change updates the workflow to use a public Linux runner.
2023-02-08 13:55:13 -05:00
Wilken Rivera 095959ed6d Fix crash when variables block is undefined
This change fixes a crash that occurs when trying to add undeclared variables into an empty
variables map. The variables block when defined will always be non-nil but in the case
where variables are declared and initialized from a legacy JSON variables file the map
must be initialized first.
2023-02-08 13:40:36 -05:00
Wilken Rivera b986a7c948 Bump development version to 1.9.0
Stable releases for 1.8.x will be made off of the release/1.8.x branch.
Main will represent the next minor version. When ready for a release a new release branch will
be created for the version.
2023-02-08 11:17:54 -05:00
Lucas Bajolet dfa5b5881e copywrite: add command/plugin.go to ignore list
The command/plugin.go file is auto-generated and should not be processed
as part of copywrite headers.
2023-02-07 17:21:12 -05:00
Lucas Bajolet f84c4e6182 copywrite: setup configuration for licensing
Copywrite is a tool developed internally at Hashicorp in order to
maintain our source code up-to-date in terms of license headers.

Since this will be monitored soon, we are preparing for this by adding
the configuration for files to ignore.
2023-02-07 15:55:43 -05:00
Claire b278e5e2d4 add changelog update for vendor label for linux packaging 2023-02-07 13:37:28 -05:00
Wilken Rivera 150767792c Add release branches to CRT build pipeline
This change will allow for release branches `release/<MAJOR>.<MINOR>.x`
to be built add uploaded to the CRT build tool chain, which can then be
promoted and released publicly if needed.
2023-02-06 15:33:15 -05:00
dependabot[bot] 65bd40c750 build(deps): bump github/issue-labeler from 2.5 to 2.6
Bumps [github/issue-labeler](https://github.com/github/issue-labeler) from 2.5 to 2.6.
- [Release notes](https://github.com/github/issue-labeler/releases)
- [Commits](https://github.com/github/issue-labeler/compare/v2.5...v2.6)

---
updated-dependencies:
- dependency-name: github/issue-labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-01-30 16:19:12 -05:00
Wilken Rivera d880d1bca7 Update ReadFromHCLBuildBlock to use the hcp_packer_registry.Description
In packer v1.8.5, the bucket's description was not properly set in the
bucket object we use for HCP, therefore all the buckets created by
Packer did not have their description updated.

Before the change
```
--- FAIL: TestReadFromHCLBuildBlock (0.00s)
    --- FAIL: TestReadFromHCLBuildBlock/configure_bucket_using_only_hcp_packer_registry_block (0.00s)
        types.bucket_test.go:380: expected the build to to have contents of hcp_packer_registry block but it does not:   &registry.Bucket{
                Slug:         "hcp_packer_registry-block-test",
            -   Description:  "",
            +   Description:  "description from hcp_packer_registry block",
                Destination:  "",
                BucketLabels: {"org": "test"},
                ... // 5 identical fields
              }
FAIL
FAIL    github.com/hashicorp/packer/internal/hcp/registry       1.072s
FAIL
```

After Change
```
~>  go test ./...
?       github.com/hashicorp/packer/internal/hcp/api    [no test files]
ok      github.com/hashicorp/packer/internal/hcp/env    (cached)
ok      github.com/hashicorp/packer/internal/hcp/registry       1.130s

```
2023-01-30 16:18:11 -05:00
Kendall Strautman 1feff93791 Update community-tools.mdx 2023-01-27 14:32:51 -05:00
50da6c8dc8 docs: Migrate link formats (#12192)
* Adding check-legacy-links-format workflow

* Adding test-link-rewrites workflow

* Migrating links to new format

* Updating docs-content-check-legacy-links-format hash

* chore: update source

* Update generated partials from Packer plugin SDK

* Bump packer-plugin-sdk to get latest packer-sdc

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

* Update Plugin SDK to fix shell-local regression

---------

Co-authored-by: Kendall Strautman <[email protected]>
Co-authored-by: Wilken Rivera <[email protected]>
Co-authored-by: Kendall Strautman <[email protected]>
2023-01-27 09:47:08 -08:00
dependabot[bot] 15a3e4f5fb build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.29.0 to 0.31.0
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.29.0 to 0.31.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.29.0...v0.31.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-01-25 21:19:47 -05:00
Lucas Bajolet ec1d2e68f5 hcp: generate fingerprints on each new build
Fingerprints are how we link a packer build to an iteration on HCP.
These are computed automatically from the Git SHA in the current state,
and are unique to the bucket/iteration.

The main problem with this approach is that while sound in theory, it
quickly falls apart when users want to run the same build configuration
twice, but expect a new image to be created.

With the current model, this fails, as the iteration with the current
SHA already exists.

While this is solvable through environment variables, or by committing a
change to the repository, we think this is not clear enough, and causes
an extra step to what should otherwise be a simple process.

Therefore, to lower the barrier of entry into HCP, we change this
behaviour with this commit.

Now, fingerprints are randomly generated ULIDs instead of a git SHA, and
a new one is always generated, unless one is already specified in the
environment.

This makes continuation of an existing iteration a conscious choice
rather than something automatic, and virtually eliminates conflicts such
as the ones described above.
2023-01-25 15:29:26 -05:00
Lucas Bajolet 73482bb636 internal: remove unused Labels on Iteration
The iteration structure that we use for linking a packer build to an
iteration on HCP defines a `Labels' attribute, which is never set nor
read from at any point.

Since it is unused, we remove it in this commit.
2023-01-25 15:29:26 -05:00
lonegunmanb 6137745cc1 Update variables documentation to refer to Packer not Terraform (#12220) 2023-01-25 10:39:33 -05:00
Wilken Rivera ad640c4224 Unpin Outscale documentation version 2023-01-24 18:39:17 -05:00
Wilken Rivera da455bdd09 Add HCP Ready label to Oracle plugin in preparation for 1.0.4 release 2023-01-24 15:52:21 -05:00
Wilken Rivera 4ca37bae86 Add a small sleep to calm the machines 2023-01-24 11:23:01 -05:00
Wilken Rivera 5081a5f24a Update nightly-release.yml 2023-01-24 11:23:01 -05:00
lonegunmanb ba546eb8cb correct document issue in provisioner block doc (#12210) 2023-01-24 10:21:54 -05:00