Merge pull request #8824 from hashicorp/d-hcl2-guides-issues-note
guides/hcl: Add link to HCL2 issues tracked on the Packer repo
This commit is contained in:
commit
b8408c1c1a
|
@ -11,6 +11,8 @@ description: |-
|
|||
|
||||
-> **Note:** Starting from version **1.5.0** Packer can read HCL2 files.
|
||||
|
||||
<%= partial "partials/guides/hcl2-beta-note" %>
|
||||
|
||||
We will soon provide a programatic way to transpose a v1 buildfile to a v1.5
|
||||
HCL file. In the meantime we will show how to manually do it.
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ page_title: Getting started configuring Packer with HCL2 files
|
|||
|
||||
-> **Note:** Starting from version **1.5.0** Packer can read HCL2 files.
|
||||
|
||||
<%= partial "partials/guides/hcl2-beta-note" %>
|
||||
|
||||
It is not necessary to know all of the details of the HCL syntax in order to
|
||||
use Packer, and so this page summarizes the most important details to get you
|
||||
started. If you are interested, you can find a [full definition of HCL
|
||||
|
@ -67,7 +69,7 @@ source "amazon-ebs" "example-1" {
|
|||
source "virtualbox-iso" "example-2" {
|
||||
boot_command = <<EOF
|
||||
<esc><esc><enter><wait>
|
||||
/install/vmlinuz noapic
|
||||
/install/vmlinuz noapic
|
||||
...
|
||||
EOF
|
||||
}
|
||||
|
|
|
@ -9,6 +9,8 @@ description: |-
|
|||
|
||||
# Input Variables and local variables
|
||||
|
||||
<%= partial "partials/guides/hcl2-beta-note" %>
|
||||
|
||||
This page introduces input variables and local variables as a way to
|
||||
parameterize a configuration. Once defined, input variables are settable from a
|
||||
default value, environment, special var files, and command line arguments.
|
||||
|
@ -19,7 +21,7 @@ Local variables can be a compound of input variables and local variables.
|
|||
Let's create a file `variables.pkr.hcl` with the following contents.
|
||||
|
||||
-> **Note**: that the file can be named anything, since Packer loads all
|
||||
files ending in `.pkr.hcl` in a directory. If you split your configuration
|
||||
files ending in `.pkr.hcl` in a directory. If you split your configuration
|
||||
across multiple files, use `packer build <source directory>` to initiate
|
||||
a build.
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
\~> Support for HCL2 is currently in Beta, which means the feature you are looking for may still need some polishing. If you find problems, please check the list of open and resolved HCL2 issues on the [Packer Issue Tracker](https://github.com/hashicorp/packer/issues?q=is%3Aissue+is%3Aopen+label%3Ahcl2). For any strange behavior not already captured please create a new issue so that we can fix it!
|
Loading…
Reference in New Issue