Commit Graph
5123 Commits
Author SHA1 Message Date
anshulSharma 02710d409b doc changes about CRT migration (#13433) (#13437)
* doc changes about CRT migration

* docs changes suggested

* docs changes suggested

* docs changes suggested

* typo fix

* typo fix
2025-07-29 20:46:17 +05:30
Jenna Goldstrich a7c85ff35b Make generate creases this SBOM provisioner docs page 2025-07-23 12:15:40 -07:00
Nick Philbrook 2154e44c3e Add note about *just metadata* 2025-07-23 12:15:40 -07:00
nphilbrookandtrujillo-adam 2c5c84e514 Update website/content/docs/templates/hcl_templates/blocks/build/hcp_packer_registry.mdx
Co-authored-by: trujillo-adam <[email protected]>
2025-07-23 12:15:40 -07:00
Nick Philbrook 9d8b2f03f0 move hcp_packer_registry block out of the build block as per error message with current CLI 2025-07-23 12:15:40 -07:00
Ryan Johnson a27e911fd8 docs: add conditional expressions
This update adds a new section explaining conditional expressions in HCL, including syntax, usage examples, and best practices for clarity and maintainability. The documentation covers how to use conditionals for default values, dynamic argument omission, and recommends using locals for complex logic.

Ref: #12806

Signed-off-by: Ryan Johnson <[email protected]>
2025-07-23 12:15:40 -07:00
Tanmay Jain 3d7ef0410e Fix 2025-06-12 12:34:32 +05:30
Bart Dorlandt 3137448b67 Fix typo 2025-06-12 12:05:45 +05:30
trujillo-adam 614e35f6ff updated provisioners reference topics 2025-06-12 12:05:01 +05:30
anshulSharma be536862ae docs: add upgrade/release notes for 1.13.0 (#13394) (#13400)
* docs: add upgrade/release notes for 1.13.0

* docs: add upgrade/release notes for 1.13.0
2025-06-04 12:30:05 +05:30
Ryan Johnson 15886817b2 docs: update link to vsphere examples
Updated the link for the Packer Examples for VMware vSphere after a repository transfer.

Signed-off-by: Ryan Johnson <[email protected]>
2025-05-06 13:25:53 -07:00
Anurag Sharma 8285a3f2ad fix(docs): correct firewall command for WinRM HTTPS setup 2025-05-06 11:47:03 +05:30
Anurag Sharma 94e03ec20b docs: issues when temp is noexec 2025-04-17 12:33:23 +05:30
Tanmay Jain 73de11bc72 Added Documentaion Comments for SSH Tunnel flags 2025-04-09 12:52:53 +05:30
Karthik P 5ecf1a78e8 docs: add installing plugins from a compiled binary example 2025-04-08 15:42:58 -04:00
Tanmay Jain 8d9f0df7ad UPDATE: Added a note for adding forward slash while copying files 2025-03-03 16:54:26 -05:00
Martin Grogan a38a6513ef docs: add PACKER_GETTER_READ_TIMEOUT in config 2025-03-03 16:54:26 -05:00
Lucas Bajolet f64ba590db docs: add upgrade/release notes for 1.12.0 2025-01-24 15:27:16 -05:00
Devashish 2e609231b4 website: add docs for the hcp-sbom provisioner 2025-01-21 16:57:50 -05:00
Devashish a353260f5d packer: add hcp-sbom provisioner
The hcp-sbom provisioner is a provisioner that acts essentially like a
download-only file provisioner, which also verifies the file downloaded
is a SPDX/CycloneDX JSON-encoded SBOM file, and sets up its upload to
HCP Packer later on.
2025-01-21 16:57:50 -05:00
Joban 2ff129cd34 fix(example): make UUIDv4 example RFC compliant
# Description

The output of the example on [uuidv4 Function](https://developer.hashicorp.com/packer/docs/templates/hcl_templates/functions/uuid/uuidv4) is not a valid RFC compliant UUIDv4. It indicates the usage of the `uuidv4()` function and outputs `b5ee72a3-54dd-c4b8-551c-4bdc0204cedb` which is not a valid UUIDv4.

I've corrected the example to output a UUIDv4 conforming to the RFC as such `xxxxxxxx-xxxx-4xxx-Nxxx-xxxxxxxxxxxx`, where:

- The 13th character is always `4` (indicating version 4).
- The 17th character must be either `8`, `9`, `a`, or `b` (indicating the first character of the variant).

# Changes

```diff
- b5ee72a3-54dd-c4b8-551c-4bdc0204cedb
+ 9fc99a70-7cd5-482d-bb2b-03af016e4e94
```

Replaces the old UUID output with a valid RFC compliant UUIDv4.

# References

- [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122)
- [RFC 9562](https://datatracker.ietf.org/doc/html/rfc9562)

# Misc.

To make sure this wasn't an issue with the `uuidv4()` function within Hashicorp's [packer](https://github.com/hashicorp/packer) I tested the function in the following way:

### Command executed:

```ps
> .\packer.exe inspect .\uuid.pkr.hcl
```

### Contents of the _uuid.pkr.hcl_ file:

```hcl
locals {
  uuid_0 = uuidv4()
  uuid_1 = uuidv4()
  uuid_2 = uuidv4()
  uuid_3 = uuidv4()
  uuid_4 = uuidv4()
  uuid_5 = uuidv4()
  uuid_6 = uuidv4()
  uuid_7 = uuidv4()
  uuid_8 = uuidv4()
  uuid_9 = uuidv4()
}
```

### Output:

```ps
Packer Inspect: HCL2 mode

> input-variables:


> local-variables:

local.uuid_0: "90877db8-5519-46ea-ae15-7dfb92594064"
local.uuid_1: "fe6a4649-97d9-4686-b981-3295175f941a"
local.uuid_2: "9944d83d-dab2-4cfb-a1db-572d19271e7a"
local.uuid_3: "547cddb7-c979-4b87-90d0-2bd9b68858b5"
local.uuid_4: "c13dc47a-552c-4dfb-a75d-2f63bb248b41"
local.uuid_5: "3db1ce29-bdde-4642-b010-1a41d47c22a3"
local.uuid_6: "4a020460-edd1-471d-b8a2-5956c0c68257"
local.uuid_7: "1845bf87-6908-4fc0-8f11-b5b4f36c60a7"
local.uuid_8: "f5c7e552-b799-45f3-8172-46162eadfd89"
local.uuid_9: "057c2eaf-6769-4a8d-90c8-775aec80496a"

> builds:
```
2025-01-21 10:13:57 -05:00
Martin Grogan cb4965d53a hcl2template: add anytrue function
this function add the hcl2 anytrue function which takes a collection and
return true if any of the element is true.
2025-01-21 10:07:10 -05:00
Martin Grogan 476ddc3810 hcl2template: add alltrue function
add an hcl2 function that return true if all the value in a collection
are true, this function was derived from terraform codebase
2025-01-21 10:07:10 -05:00
Martin Grogan 024bf7259a docs: make TMPDIR clickable
The option is less visible than the other one and by adding the quote,
it creates an anchor that will make it easier to link.
2024-12-23 15:18:33 -05:00
Martin Grogan 5940ab6d64 docs: put hcl2 example in first tab 2024-12-20 10:39:32 -05:00
Martin Grogan 35682265c4 docs: add strcontains function doc 2024-12-05 16:04:00 -05:00
Henrik Gerdes 6c40bfb0cd feat: allow additional methods in http datasource
This adds support for additional http methods for the http datasource.
Fixes #13169

Signed-off-by: Henrik Gerdes <[email protected]>
2024-10-29 16:27:26 -04:00
Laurent Goudet 069a6ed62f Add missing dash on recursive fmt command
As per title, very minor fix but I might as well fix it.
2024-10-16 13:39:25 -04:00
Gregory Bonk cef978f17c Update datasources.mdx
change Locals to local
2024-10-15 14:08:16 -04:00
yannic rieger 3c48f2661b docs: add S3 community provisioner 2024-10-07 15:53:24 -04:00
Wenfeng Pan 1b160e5df0 Add base64gzip function support to Packer template 2024-08-13 14:53:29 -04:00
Lucas Bajolet 199a751353 docs: remove trailing whitespaces from the docs 2024-08-08 10:14:20 -04:00
Lucas Bajolet 6514a66131 docs: update manually installing plugins docs
The installing plugins docs had information on manually installing
plugins that was misleading a bit, so we update that section with this
commit.
2024-08-08 10:14:20 -04:00
graevyandWilken Rivera e4ec754985 doc fix for unattended debian/ubuntu installer linkrot (#13023)
* doc fix for unattended debian/ubuntu installer linkrot

the links for chef-maintained preseeds/autoinstallers for debian/ubuntu both rotted. i'm just getting started with packer, so i hope this edit is accurate.

* Remove webarchive links for legacy JSON

When possible point users to HCL2 templates for getting started examples.

* As per the style guide aim for inclusive language

---------

Co-authored-by: Wilken Rivera <[email protected]>
2024-06-21 16:00:38 -04:00
Wilken RiveraandLucas Bajolet d406613387 Document use of TMPDIR required for remote plugin installation (#13056)
* Document use of TMPDIR required for remote plugin installation

* Update website/content/docs/configure.mdx

Co-authored-by: Lucas Bajolet <[email protected]>

---------

Co-authored-by: Lucas Bajolet <[email protected]>
2024-06-17 17:32:42 -04:00
Ryan Johnson 5e9f5f4a99 docs: update provisioners
Updates the provisioners documentation for a better reader experience by including a list of the built-in provisioners and a link to the community supported provisioners that are all withing the navigation tree.

Ref: #12898

Signed-off-by: Ryan Johnson <[email protected]>
2024-06-17 11:26:32 -04:00
Ryan Johnson 66abaaeb4e docs: string templates
Adds an example of a string template being used.

The example demonstrates how a template sequence can be used to embed the value of a variable into a string that can be used as script content.

Ref: #12651

Signed-off-by: Ryan Johnson <[email protected]>
2024-06-14 18:12:34 -04:00
Ryan Johnson 51cbe0ba81 docs: update ssh
Adds documentation for `ssh_keypair_name`, `ssh_agent_auth`, `temporary_key_pair_name`, and `ssh_private_key_file`.

The note is updated noting that not all builders support these options.

Ref:  #10722

Signed-off-by: Ryan Johnson <[email protected]>
2024-06-13 14:30:48 -04:00
Ryan Johnson f7cf9ede19 docs: update init
Adds additional examples and help regarding the use of `packer init`.

Ref: #11541

Signed-off-by: Ryan Johnson <[email protected]>
2024-06-13 12:22:07 -04:00
Lucas BajoletandWilken Rivera 280266163c docs: add plugin loading spec documentation (#13024)
* docs: add plugin loading spec documentation

The logic for discovering and loading plugins is not well documented on
the current documentation.
This causes issues for users that have to troubleshoot why a particular
plugin cannot be found or installed, so this commit adds a specification
document, detailing what are Packer's expectations when it comes to
discovering plugins.

* Apply suggestions from code review

* Update plugin loading specification navbar

---------
Co-authored-by: Wilken Rivera <[email protected]>
2024-06-10 09:56:14 -04:00
Alex Boutin 3fb6b76701 Fixed wrong parameter in doc 2024-06-03 10:09:35 -04:00
d75975821f Update plugins install docs for v1.11.0 (#12995)
* IPE-727 first commit, adds release notes

* content for the 1.11 release notes

* updates to init CLI reference

* updates to install plugins CLI reference

* updates to source information on the packer block configuration reference

* updated Packer configuration page

* updated plugins installation overview page

* updated plugins installation usage page

* added Upgrades section

* added outline for an upgrade page for this version

* added comments for upgrade page outline

* renamed install plugins mdx and added redirects

* Apply suggestions from code review

Co-authored-by: Lucas Bajolet <[email protected]>

* fix nav

* fix bad links

* applying additional feedback

* Apply suggestions from code review

Co-authored-by: Lucas Bajolet <[email protected]>

* integrated rationale into release notes

* removed 'upgrade from older version' section in the upgrade instructions

* docs: fill-in the upgrade/1.11 document

* Apply suggestions from code review

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

* edits to upgrade 1.11 and release note

* Apply suggestions from code review

Co-authored-by: Lucas Bajolet <[email protected]>

* Apply suggestions from code review

Co-authored-by: Lucas Bajolet <[email protected]>

---------

Co-authored-by: Lucas Bajolet <[email protected]>
Co-authored-by: Lucas Bajolet <[email protected]>
Co-authored-by: Wilken Rivera <[email protected]>
2024-05-31 14:52:47 -04:00
Steven Kalt 766c3d7fef docs: consistent code blocks around types 2024-05-31 11:15:55 -04:00
Lucas Bajolet accbe97e1e hcl2template: add text(encode|decode)base64 funcs (#12997)
Compared to Terraform, Packer was lacking a capability to encode/decode
strings to/from base64-encoded text encoded with another encoding.

This could be problematic in some cases, mainly when working with
Windows, as most of the OS uses UTF-16LE as its standard encoding for
many operations.

Therefore, we take a page from Terraform here, and add those functions
to what Packer supports in an HCL2 context.
2024-05-30 14:24:46 +02:00
Lucas Bajolet a9ba14f505 website: fix myawesomecloud reference
When updating the docs in prevision for Packer 1.11.0, we changed the
templates that show how plugins are installed/discovered with commands
like packer init.

While doing so, a template had its component renamed to coolcloud, but
the following prose did not change, making the text inconsistent.

Since there are other mentions of myawesomecloud in the codebase, we
choose to settle on this one for that example too.
2024-05-20 12:39:14 -04:00
Wilken Rivera a7591c950a Add details on the importance of using required_plugins 2024-05-15 14:50:24 -04:00
Wilken Rivera 27b5f27ec9 Add section for Non-GitHub source addresses 2024-05-15 14:50:24 -04:00
Wilken Rivera ce7205ed79 required_plugins:Add source addresses section
* Document the purpose of a source address
* Add a note about non-GitHub source addresses containing one of more sub-folder parts
2024-05-15 14:50:24 -04:00
Wilken Rivera 4015e4d7be init:Document force flag option for init command 2024-05-15 14:50:24 -04:00
Estelle PoulinandWilken Rivera 47d8df33e9 Update Example of Parsing a Manifest to Use Only jq (#12894)
* Update manifest.mdx

* Remove extra space in split function

---------

Co-authored-by: Wilken Rivera <[email protected]>
2024-05-15 11:27:30 -04:00