Commit Graph
18526 Commits
Author SHA1 Message Date
Kévin Dunglas 739b2acd20 docs: fix typo (#12493) 2023-07-19 17:35:26 -04:00
dependabot[bot] e9e4534321 build(deps): bump tough-cookie from 4.0.0 to 4.1.3 in /website
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-19 17:34:15 -04:00
dependabot[bot] 02f1d50587 build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /website
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-19 17:33:21 -04:00
Lucas Bajolet e3c20e3dc5 CHANGELOG: prepare for 1.9.3 2023-07-19 17:20:26 -04:00
Lucas Bajolet 3c4a4f06da CHANGELOG: add changelog for Packer 1.9.2 2023-07-19 15:13:57 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] 0194d839b0 Result of tsccr-helper -log-level=info -pin-all-workflows . (#12507)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-07-19 13:20:14 -04:00
GaryNgandLucas Bajolet 58b193f221 Use backtick to prevent html parsing
Co-authored-by: Lucas Bajolet <[email protected]>
2023-07-19 11:54:11 -04:00
GaryNg cc1e2fca78 Prefix url with product slug 2023-07-19 11:54:11 -04:00
GaryNg 5271c28749 Add closing code block 2023-07-19 11:54:11 -04:00
Lucas Bajolet 6e764658b7 Makefile: remove mode-check target (#12505)
The Makefile would check for executable files inside the Packer
repository, and produce errors if one was detected and not explicitely
whitelisted through the `EXECUTABLE_FILES' Makefile variable.

This check was introduced a while back to avoid having executable files
in the repository, but this check can be problematic sometimes because
of how it is written, namely when building the website, which causes a
lot of JS executable files to appear in the hierarchy, and in turn this
causes the shell expansion to fail because of the large number of
arguments.

Since this test is not necessary for Packer to build or test, and since
it implies that we have to maintain the whitelist regex, we remove it
from the Makefile.
2023-07-18 16:14:35 -04:00
Lucas Bajolet b522edca36 hcl2_upgrade: add required_plugins in out template
When a legacy JSON template references built-in plugins, we add them to
the resulting template as a `required_plugins' block in HCL2.
2023-07-18 16:04:55 -04:00
Lucas Bajolet a2930bda4f packer: warn on bundled plugins usage
Since bundled plugins will be removed in an upcoming version of Packer,
this commit adds a new warning message whenever a template uses one such
plugin.

This warning has been implemented on build, validate, console and the
inspect subcommands.

In addition to warning about the upcoming change and potential issue
this will cause, this warning message proposes solutions to the user so
they know what they'll have to do in order not to rely on those bundled
plugins later.
2023-07-18 15:36:12 -04:00
Lucas Bajolet 2824320aa1 packer: remove discoverExternalComponents
Since the `discoverExternalComponents' function was defined but not
called anywhere, it is dead code, and can be safely removed from the
codebase.
2023-07-18 15:36:12 -04:00
Lucas Bajolet 456bc2397b hcl2template: only warn once for missing plugins
In HCL2, if a template contains a `required_plugins' block, but the
required plugins are not installed, we print a warning.

Prior to this commit, this was reported as an error once per missing
plugin, which was redundant.
This commit changes that by gathering all the missing plugins once, and
printing them as a bullet list, so the message isn't redundant anymore.
2023-07-17 16:54:44 -04:00
akkuman 0e3de18e98 fix: revise env var PACKER_PLUGIN_PATH
ref: https://github.com/hashicorp/packer/pull/8616/files#diff-0e426a43248661127a0c0ee115aef7a1093b635f8993b3f7ebb1dd9f05b8f249R153
2023-07-13 09:21:09 -04:00
Lucas Bajolet 8beddcf52a website: fix header on configure page
When the config file header was reworked, an erroneous link was
included and placed so close to the header that it was rendered verbatim
in the final documentation page.

By adding an extra empty line in between the anchor link and the header,
this renders correctly.
2023-07-12 12:45:42 -04:00
Wilken Rivera 9c85fc274a Update plugin loading documentation (#12485)
Packer checks a number of directories for plugins upon initialization,
with the introduction of multi-component plugins and underlying changes
to the Packer SDK the ordering changed slightly. These changes update
the related documentation to reflect the new ordering, and adds a plugin
loading ordering section to the docs to help users discover how plugin
loading works.

Include in this change are updates to the PACKER_CONFIG_DIR environment
variables to reflect the XDG base directory specification used as the
default Packer configuration directory layout.

* Update website/content/docs/configure.mdx
2023-07-06 16:00:36 -04:00
Wilken Rivera 8982d4f168 Migrate external Parallels plugin to Parallels/packer-plugin-parallels (#12476)
* Update external plugin documentation source

The Parallels plugin for Packer is now maintained by the Parallels 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-parallels for list of vendored plugins
2023-07-03 14:13:08 -04:00
Dylan Staley 18cc6edbd5 docs: move community tools to docs folder 2023-06-23 18:40:57 -04:00
Wilken Rivera 4347e8cee8 Default to PuluginFolders is KnownPluginFolders is unset
* PACKER_PLUGIN_PATH takes precedence over all
2023-06-22 17:28:23 -04:00
Wilken Rivera f7a0df4bd1 Reduce the number of nest plugin scans
Packer will try to discover installed plugins in all of the directories
defined by packer.KnowPluginFolders. In a previous release logic was
added to scan nested directories in order to load plugins installed by
`packer plugins install`. This change resulted in a nested directory
scan for each folder within the KnownPluginFolders slice.

This change reduces the nested directory scan to only the directories
where plugins would have been installed using `packer plugins install`
2023-06-22 17:28:23 -04:00
Wilken Rivera f1c1e49685 Fix executable directory path 2023-06-22 17:28:23 -04:00
Wilken Rivera ffa1e54af5 Delete check-legacy-links-format.yml (#12471)
Remove the check-legacy-links-format.yml workflow. These checks are now included as part of our
content conformance checks that run on PRs with documentation content changes.
2023-06-16 15:46:53 -04:00
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