Commit Graph
18303 Commits
Author SHA1 Message Date
Lucas BajoletandWilken Rivera aeffaa790f docs: add a paragraph on fingerprint generation (#12464)
* docs: add a paragraph on fingerprint generation

Since version 1.9.0+ changed the way Packer generates fingerprints for
HCP Packer, we add a small paragraph to explain how it used to be
generated before, and how it changed in this version.

* Apply suggestions from code review

---------

Co-authored-by: Wilken Rivera <[email protected]>
2023-06-15 15:09:00 -04:00
hashicorp-copywrite[bot] d563a3c623 [COMPLIANCE] Add Copyright and License Headers 2023-06-05 13:39:28 -04:00
Lucas Bajolet 5f038ce8ac CHANGELOG: prepare for upcoming v1.9.2 2023-06-02 14:13:48 -04:00
Lucas Bajolet 2d5d78a306 CHANGELOG: fix latest release version 2023-06-01 15:44:33 -04:00
Lucas Bajolet 571adf9f1b CHANGELOG: add changelog for v1.9.1 2023-06-01 15:08:17 -04:00
Lucas Bajolet 925cb5e541 hcp: support HCP_PROJECT_ID environment variable
With HCP supporting multi-projects now, Packer needs to take it into
account when picking a project from an organisation.

This commit adds two cases:

1. multiple projects are defined, none is supplied through
   HCP_PROJECT_ID: in this case we will default to the oldest project
   defined for the organisation.

2. we supply HCP_PROJECT_ID: in this case, we pick the project with the
   corresponding ID, and use it for publishing metadata.
2023-06-01 14:39:09 -04:00
Lucas Bajolet 3f4e49e847 CHANGELOG: add advisory on multiproject support
On HCP, multiproject support was GA'd recently, but Packer does not
support the feature yet.

To avoid clients being surprised if they encounter an error with this
feature enabled, we add an advisory related to this feature not being
supported for now, but planned for later.
2023-06-01 11:20:45 -04:00
Lucas Bajolet ac29a1366b version: prepare for 1.10.0 releases 2023-05-31 11:50:56 -04:00
Lucas Bajolet f730bd640f changelog: update for release 1.9.0 2023-05-31 11:45:50 -04:00
Lucas Bajolet 35c579a9f6 CHANGELOG: update for 1.9.0 release 2023-05-30 17:20:34 -04:00
Wilken Rivera ace37e067d Update issues-opened.yml
Remove action to add issue to project. Board has been deprecated.
2023-05-30 13:43:10 -04:00
Wilken Rivera 6db700f4cf Remove invalid quote from ldflags 2023-05-30 12:39:11 -04:00
Wilken Rivera 32c0deeff0 build GHA: Address set-output deprecation warnings 2023-05-30 12:04:44 -04:00
Wilken Rivera f7c0507c1a auto-close-stale-issues: Bump action/stale to latest available release 2023-05-30 12:04:44 -04:00
Wilken Rivera c78de1e64a acceptance-test GHA: Address set-output deprecation warnings 2023-05-30 12:04:44 -04:00
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