Skip to content

Commit b9fbe81

Browse files
docs: add upgrade/release notes for 1.13.0 (#13394) (#13402)
* docs: add upgrade/release notes for 1.13.0 * docs: add upgrade/release notes for 1.13.0
1 parent b5ed178 commit b9fbe81

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
page_title: Packer v1.13 release notes
3+
description: Learn about the changes in Packer v 1.13
4+
---
5+
6+
# Packer v1.13 release notes
7+
8+
This page describes changes to Packer in v1.13. Refer to the [Packer repository](https://github.com/hashicorp/packer/releases) for information about all releases.
9+
10+
## New features
11+
12+
This release includes the following updates.
13+
14+
### Shell Provisioner Enhancement
15+
16+
The shell provisioner’s inline field now supports executing scripts directly, including those with their own shebang (#!) lines.
17+
This enhancement allows you to provide a full script as an inline command, enabling dynamic scripts via tools like templatefile.
18+
19+
### New functions
20+
21+
As part of Packer 1.13, we have introduced below functions.
22+
23+
* `sum`: takes a list or set of numbers and returns the sum of those numbers..
24+
* `startswith`: takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
25+
* `endswith`: takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.
26+
27+
### Packer fmt command to format multiple HCL files
28+
29+
Added the ability for the packer fmt command to format multiple HCL files at once.
30+
This enhancement allows users to format several files in a single command invocation.
31+
32+
### Top-Level hcp_packer_registry Block Support
33+
34+
Added support for defining the hcp_packer_registry block at the top level of the Packer configuration. Enables improved management and referencing of HCP Packer registries directly in the root schema.
35+
Also added validation around the multiple hcp_packer_registry blocks at top level.
36+
37+
## Bug fixes
38+
39+
### Documentation Update
40+
41+
Updated the documentation to explicitly state that a trailing slash is required when uploading directories, regardless of the guest OS.
42+
This clarification is intended to ensure consistent behavior and prevent confusion, especially for Windows users.
43+
44+
### --use-sequential-evaluation Flag Now Works in Packer Console
45+
46+
Fixed an issue where using the --use-sequential-evaluation flag with packer console resulted in an error.
47+
The flag is now properly included in the supported options for packer console and works as intended.
48+
Removed this flag from the fix subcommand, where it was not used or required.
49+
50+
### Inline PowerShell Command
51+
52+
Added a wrapper around inline PowerShell commands executed by the provisioner to catch errors and ensure the Packer build fails if any command results in an error.
53+
54+
### Preserve the user-defined order of variable files
55+
56+
Ensures that Packer now preserves the user-defined order of variable files as input by the user.
57+
This change maintains the intended precedence of variables, honoring the order specified on the command line.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
page_title: Upgrade to v1.13
3+
description: Learn how to upgrade your Packer installation to v1.13
4+
---
5+
6+
# Upgrade to v1.13
7+
8+
The topic describes upgrade considerations for Packer v1.13. Refer to the [v1.13 release notes](/packer/docs/release-notes/v1_13) for details about changes in v1.13.
9+
10+
## Overview
11+
12+
You can use the upgrade command for the package manager you installed Packer with or download and replace the existing binary to upgrade Packer. Refer to [Install Packer](https://developer.hashicorp.com/packer/install) for instructions.
13+
14+
## Upgrade from 1.12
15+
16+
Packer 1.13's notable changes can be summarised by the following points:
17+
18+
1. Provisioner Enhancement
19+
2. New functions Support
20+
3. Packer fmt command to format multiple HCL files
21+
4. Top-Level hcp_packer_registry Block Support
22+
23+
**Note**: The Powershell provisioner changes are breaking changes.
24+
25+
## Provisioner Enhancement
26+
27+
The `shell` provisioner’s inline field now supports executing scripts directly, including those with their own shebang (#!) lines.
28+
This enhancement allows you to provide a full script as an inline command, enabling dynamic scripts via tools like templatefile.
29+
30+
Added a wrapper around inline `PowerShell` commands executed by the provisioner to catch errors and ensure the Packer build fails if any command results in an error.
31+
32+
## New functions Support
33+
34+
As part of Packer 1.13, we have introduced more functions.
35+
36+
* `sum`: takes a list or set of numbers and returns the sum of those numbers..
37+
* `startswith`: takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix.
38+
* `endswith`: takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix.
39+
40+
## Packer fmt command to format multiple HCL files
41+
42+
Added the ability for the packer fmt command to format multiple HCL files at once.
43+
44+
## Top-Level hcp_packer_registry Block Support
45+
46+
Added support for defining the `hcp_packer_registry` block at the top level of the Packer configuration. Enables improved management and referencing of HCP Packer registries directly in the root schema.
47+
48+

website/data/docs-nav-data.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,10 @@
906906
{
907907
"title": "v1.12",
908908
"path": "release-notes/v1_12"
909+
},
910+
{
911+
"title": "v1.13",
912+
"path": "release-notes/v1_13"
909913
}
910914
]
911915
},
@@ -919,6 +923,10 @@
919923
{
920924
"title": "Upgrade to v1.12",
921925
"path": "upgrade/v1_12"
926+
},
927+
{
928+
"title": "Upgrade to v1.13",
929+
"path": "upgrade/v1_13"
922930
}
923931
]
924932
},

0 commit comments

Comments
 (0)