Commit Graph
18838 Commits
Author SHA1 Message Date
Wilken Rivera 78aca131db jira GHA: Address set-output deprecation warnings
Closes #12426
2023-05-30 12:04:44 -04:00
Wilken Rivera d67bacc8d3 Remove community plugins from the vendored plugins list (#12436)
This step removes community plugins from the Packer binary release. These plugins are being maintained and released independently of Packer and have become out of date. To ensure users are using the latest version of the plugins they are being removed in favor of the external plugin installation processes.
2023-05-30 11:25:28 -04:00
Samuel Phan 09e9643881 docs: add missing end quote 2023-05-29 13:33:17 -04:00
Wilken Rivera 6a4c577d6a Bump github.com/shirou/gopsutil to v3 (#12437)
This change updates gopsutil to the latest available version.

Fixes: https://github.com/hashicorp/packer/issues/12430
2023-05-25 15:45:13 -04:00
Orien Madgwick 69c6852d57 Align Packer logo color 2023-05-22 13:58:04 -04:00
Wilken Rivera 53878a806f Update ldflags used to build release binaries
Prior to v1.8.6 a change to the release pipeline was introduced to
automatically set and bump product version information. In that change
the ldflags for striping debug symbols was removed resulting in binaries
with full debug symbols. Thus resulting in larger binary deliverables.
This change adds the missing ldflags back into the build pipeline.

Results for Packer 1.8.5
```
~>  unzip ~/packer_1.8.5_linux_amd64.zip
~>  go tool nm -size packer| c++filt
reading packer: no symbol section
reading packer: no symbols

```

Results for Packer 1.8.6
```
~>  unzip ~/packer_1.8.6_linux_amd64.zip
~>  go tool nm -size packer| c++filt | tail -n 10
 8d97ac0       2816 D vendor/golang.org/x/text/unicode/norm.nfcSparseValues
 8df2f60       6144 D vendor/golang.org/x/text/unicode/norm.nfcValues
 8f96fc8          8 D vendor/golang.org/x/text/unicode/norm.nfkcData
 8d985c0       2816 D vendor/golang.org/x/text/unicode/norm.nfkcIndex
 8fa40a0         48 D vendor/golang.org/x/text/unicode/norm.nfkcSparse
 8f4a3c0         24 D vendor/golang.org/x/text/unicode/norm.nfkcSparseOffset
 8db5c00       3580 D vendor/golang.org/x/text/unicode/norm.nfkcSparseValues
 8e48d60      12032 D vendor/golang.org/x/text/unicode/norm.nfkcValues
 8f96fd0          8 D vendor/golang.org/x/text/unicode/norm.recompMap
 8fe5bd0         12 D vendor/golang.org/x/text/unicode/norm.recompMapOnce
```

Closes #12392
2023-05-08 14:08:01 -04:00
Wilken Rivera c6e2468489 Update CHANGELOG 2023-05-04 19:59:14 -04:00
Wilken Rivera 0eb65683d3 Update CHANGELOG
* Add a few missing entries
* Fix minor typos
2023-05-04 19:29:41 -04:00
Wilken Rivera 88abc56781 Update CHANGELOG 2023-05-04 15:10:37 -04:00
Wilken Rivera a049f37975 Merge pull request #12402 from hashicorp/nywilken/bump-go-version-1.20.4
.go-version: Bump version of Go to 1.20.4
2023-05-04 10:23:30 -04:00
Wilken Rivera 353882b00c .go-version: Bump version of Go to 1.20.4 2023-05-03 18:53:42 -04:00
Wilken Rivera a435fd7de1 Merge pull request #12400 from josiahsmythe-bah/patch-1
Fixed formatting issue
2023-05-03 16:14:35 -04:00
josiahsmythe-bah f81e9c2222 Fixed formatting issue 2023-05-03 11:38:52 -04:00
Lucas Bajolet 1a1fada9e8 .github: re-pin github-script to v3
When tsscr bumped the version of the action to v6, we experienced some
failures in our nightly runs.

To make the action operable again, we pin the action to the former: v3.
2023-05-02 11:11:49 -04:00
Wilken Rivera faab8de72d Merge pull request #12391 from hashicorp/nywilken/circular-datasource-link
[HPR-1038] Remove circular reference between data source doc pages
2023-05-01 11:19:19 -04:00
Wilken Rivera f809cbce5f Remove circular reference between data source documentation pages
* Update the data source documentation with a link to the amazon-ami configuration reference guide.

Closes #12336
2023-04-28 16:30:01 -04:00
Wilken Rivera f359e517a9 Merge pull request #12389 from hashicorp/nywilken/release-branch-checks
Add release branches to Go GHA workflows
2023-04-28 14:32:53 -04:00
Wilken Rivera 7c29c9887e Add release branches to Go GHA workflows 2023-04-28 14:16:37 -04:00
Lucas Bajolet 1ad92b0759 docs: add docs to show diffs between JSON and HCL2 2023-04-28 13:58:45 -04:00
Wilken Rivera 06fe087097 Merge pull request #12380 from hashicorp/bump-go-1.20
Bump Go tooling to version 1.20
2023-04-28 13:57:32 -04:00
Wilken Rivera 65f6428fce Remove external archived provisioner plugins (#12374)
This change removes a set of plugins that have not been updated in a while. These
plugins have been archived for some time now. Users wishing to continue using these plugins
should use the `packer plugins install` or `packer init` commands to install the external plugin.
2023-04-28 13:52:49 -04:00
Wilken Rivera 13a24db0de Remove IONOS plugins from vendored plugins (#12385)
* Remove profitbricks plugin
* Remove oneandone plugin

The following plugins have been unmaintained for some time now, and their
upstream cloud provider has consolidate the services. These plugins
will continue to be available to Packer via direct installation using
packer init or the packer plugins install command. But they will no longer
be bundled with Packer.
2023-04-28 13:31:09 -04:00
Quentin L 00db5bfff8 Fix url git repository modern Windows version in the Autounattend Windows Guide (#12382) 2023-04-28 06:40:51 -04:00
Wilken Rivera 502d77cbae Bump version of golanci-lint 2023-04-27 15:20:56 -04:00
Wilken Rivera eca75a6847 Run make fmt to fix checks 2023-04-27 15:17:31 -04:00
Wilken Rivera ddd7ee98b6 Bump go.mod to 1.20
* Fix go vet issue

* Bump Go tooling to version 1.20

* Update workflows to use go-version file
2023-04-27 15:11:48 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] 3ac1179841 Result of tsccr-helper -pin-all-workflows . (#12381)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-04-27 14:55:22 -04:00
Wilken Rivera 08d1dfe36c Remove external plugin for Digital Ocean (#12376)
The Digital Ocean plugin is now maintained and released by the Digital Ocean team.
To ensure users are downloading the latest available version the plugin will nolonger
be bundled with Packer.
2023-04-26 14:06:57 -04:00
Lucas Bajolet 31921f0c9f packer: track template type in spans
The template type for a builder, provisioner, post-processor or
datasource was not tracked with telemetry data.

This commit adds the infrastructure to track this, bumping the schema
for non-crashes to `beta/packer/6' at the same time.
2023-04-18 11:19:21 -04:00
Lucas Bajolet f1a41b488f packer: add HCL2 support for telemetry
Packer's telemetry package captures the field names from a configuration
on legacy JSON templates, but did not contain any code for handling HCL2
template configurations.

This commit adds a routine to extract the field names from a HCL2
configuration once flattened, and adds some glue code to propagate the
configurations to the telemetry structures.
2023-04-18 11:19:21 -04:00
Wilken Rivera 26af7901fe Update fix command autocomplete to work for JSON template files only (#12366) 2023-04-14 13:00:24 -04:00
Michael Rolli 43b9bef6fd Enhance zsh completion for the packer command (#12356)
Now completes more commands and also matches template files both for
*pkr.hcl and *pkr.json as suggested by the packer template naming scheme.
2023-04-13 10:15:02 -04:00
485e080725 clarify local and input variables (#12334)
* clarify local and input variables

* Apply suggestions from code review

Co-authored-by: Rose M Koron <[email protected]>

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Rose M Koron <[email protected]>
Co-authored-by: Wilken Rivera <[email protected]>
2023-04-12 18:05:29 -04:00
Wilken Rivera e0a5286645 cmd/console: Add config-type flag to command help (#12360)
It is not clear that the console command runs in legacy JSON mode by
default and that users can specify the -config-type flag to toggle HCL2
mode. This change adds the config-type flag to the command's help text
to alert users of the gotcha.

In the next minor Packer release the console command will be updated to
default to HCL2 mode.

Relates to: #12359
Relates to: #10603
2023-04-12 14:27:39 -04:00
Wilken Rivera 06653b98c0 Update allowed dependencies to track (#12355)
* Packer plugins rely on the Packer SDK for the majority of its HCL
dependency. To prevent issues with the version of go-cty or hcl/v2 pkg
getting out of sync this changes sets the allowed dependency to
packer-plugin-sdk only.

* HashiCorp is standardizing on pinning versions of allowed GitHub actions to prevent
the introduction of potential security issues. This change removes GitHub actions
from dependabot.
2023-04-07 13:44:26 -04:00
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