Commit Graph
405 Commits
Author SHA1 Message Date
Anurag Sharma d155ec0815 fix note not showing up 2025-04-15 15:31:15 +05:30
Anurag Sharma 1a8dd4b63f revert changes to debugging mdx 2025-04-15 15:10:17 +05:30
Anurag Sharma 80379bae09 docs: improve clarity on TMPDIR usage during plugin installation 2025-04-15 15:03:21 +05:30
Anurag Sharma 8ea6e51add reformat the file 2025-04-10 13:23:28 +05:30
Anurag Sharma cab5be8ecf docs: issues when temp is noexec 2025-04-10 13:12:43 +05:30
trujillo-adam 35eed086c1 Replace .io links with devdot links (#13335)
* replace .io links with devdot links

* update links in website docs readme
2025-03-28 07:10:47 -07:00
Karthik P 1896739a4c docs: add installing plugins from a compiled binary example 2025-03-06 12:06:03 -05:00
Tanmay Jain 736a6cbc98 UPDATE: Added a note for adding forward slash while copying files 2025-03-03 16:52:08 -05:00
Martin Grogan 43383a22e2 docs: add PACKER_GETTER_READ_TIMEOUT in config 2025-03-03 16:45:04 -05:00
trujillo-adam 10fa414030 Merge pull request #13286 from hashicorp/docs/packer-seo-fy2025q4
Docs/packer seo fy2025q4
2025-02-03 10:59:36 -08:00
trujillo-adamandRuben Nic f46d0f6da4 Update website/content/docs/templates/legacy_json_templates/user-variables.mdx
Co-authored-by: Ruben Nic <[email protected]>
2025-01-31 14:28:18 -08:00
trujillo-adam cf716c73ed Merge pull request #13285 from hashicorp/docs/packer-seo-final-batch
remaining packer content
2025-01-31 14:27:03 -08:00
trujillo-adamandrita 3ddaae6e68 Apply suggestions from code review
Co-authored-by: rita <[email protected]>
2025-01-31 14:09:46 -08:00
trujillo-adam c310eac0cc Merge pull request #13284 from hashicorp/docs/packer-seo-functions-batch3
Docs/packer seo functions batch3
2025-01-30 11:08:48 -08:00
trujillo-adam 090b30e8a3 fix missing partials 2025-01-30 11:01:36 -08:00
trujillo-adam 0f30246355 formatting error in page desc 2025-01-30 10:37:42 -08:00
trujillo-adam c3df63af1e removed 'learn to' keyword phrases 2025-01-30 10:14:03 -08:00
trujillo-adamandrita 3e3459b3a8 Update website/content/docs/templates/hcl_templates/functions/encoding/base64decode.mdx
Co-authored-by: rita <[email protected]>
2025-01-30 10:06:13 -08:00
trujillo-adamandrita 06af5e646d Apply suggestions from code review
Co-authored-by: rita <[email protected]>
2025-01-30 10:05:01 -08:00
trujillo-adam cf46ce621f remaining packer content 2025-01-29 16:14:35 -08:00
trujillo-adam 8e6c32ce19 fix typo 2025-01-29 14:15:55 -08:00
trujillo-adam 0c0f7a6c41 Merge pull request #13282 from hashicorp/docs/packer-seo-templates-batch1
Docs/packer seo templates batch1
2025-01-29 10:41:19 -08:00
trujillo-adam f46a4351e6 Apply suggestions from code review 2025-01-29 10:36:05 -08:00
trujillo-adam b417abafa0 ipnet and uuid funcs 2025-01-29 10:18:14 -08:00
trujillo-adam d8fa10e6eb string functions 2025-01-29 09:51:34 -08:00
trujillo-adamandRose M Koron f86801abc6 Apply suggestions from code review
Co-authored-by: Rose M Koron <[email protected]>
2025-01-29 08:33:36 -08:00
trujillo-adamandBrian McClain ad18e70980 Apply suggestions from code review
Co-authored-by: Brian McClain <[email protected]>
2025-01-29 08:15:40 -08:00
trujillo-adam 8b84cce611 numeric and conversion functions 2025-01-28 16:00:32 -08:00
trujillo-adam 8ad24fd454 encoding functions 2025-01-28 15:39:09 -08:00
trujillo-adam 2929047d88 contextual and datatime functions 2025-01-28 14:59:40 -08:00
trujillo-adam 75678c5de2 file functions references 2025-01-28 12:15:44 -08:00
trujillo-adam 953c814ad5 crypto and collection functions references 2025-01-28 11:22:54 -08:00
trujillo-adam 54da4b047f hcl templates content except functions 2025-01-28 09:44:33 -08:00
trujillo-adam a9ada1d19d hcl template blocks 2025-01-27 14:44:31 -08:00
trujillo-adam c5036e233d Merge pull request #13273 from hashicorp/docs/packer-seo-provs
updated provisioners reference topics
2025-01-24 14:18:57 -08:00
trujillo-adamandBrian McClain f62463ef26 Apply suggestions from code review
Co-authored-by: Brian McClain <[email protected]>
2025-01-24 14:14:46 -08:00
trujillo-adam b42e78ae1a Merge pull request #13272 from hashicorp/docs/packer-seo-builders-plugins
Docs/packer seo builders plugins
2025-01-24 14:13:26 -08:00
trujillo-adamandBrian McClain 9fd83c155c Apply suggestions from code review
Co-authored-by: Brian McClain <[email protected]>
2025-01-24 14:08:16 -08:00
trujillo-adamandBrian McClain 9cf014fa08 Apply suggestions from code review
Co-authored-by: Brian McClain <[email protected]>
2025-01-24 13:50:20 -08:00
trujillo-adam ba3c07bf66 legacy json template ref 2025-01-24 12:28:52 -08:00
trujillo-adam 7645ee0ff4 updated provisioners reference topics 2025-01-23 19:41:57 -08:00
trujillo-adam da35666689 buiders, plugins, and some top-level pages 2025-01-23 16:02:43 -08:00
Lucas Bajolet 298be01fb6 docs: add upgrade/release notes for 1.12.0 2025-01-23 15:10:06 -05:00
trujillo-adam 711a38bdd4 intro articles 2025-01-23 11:02:12 -08:00
trujillo-adam 8eb277b122 seo improvements data sources references 2025-01-21 19:30:41 -08:00
Devashish 2e609231b4 website: add docs for the hcp-sbom provisioner 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