mirror of https://github.com/hashicorp/packer
parent
ba3c07bf66
commit
a9ada1d19d
@ -1,16 +1,13 @@
|
||||
---
|
||||
description: >
|
||||
The data block defines data sources within your Packer configuration.
|
||||
page_title: data - Blocks
|
||||
The `data` block defines data sources within your Packer configuration. Learn how to configure `data` blocks.
|
||||
page_title: data block referenece
|
||||
---
|
||||
|
||||
# The `data` block
|
||||
# `data` block
|
||||
|
||||
The `data` block defines data sources within your Packer configuration.
|
||||
The `data` block defines data sources within your Packer configuration. The following example instructs Packer to query the `amazon-ami` data source for information to use in the template.
|
||||
|
||||
`@include 'from-1.5/datasources/example-block.mdx'`
|
||||
|
||||
# More on data sources
|
||||
|
||||
- Read the [full Data Sources](/packer/docs/templates/hcl_templates/datasources) description for a more
|
||||
thorough read.
|
||||
Refer to [Data Sources](/packer/docs/templates/hcl_templates/datasources) for instructions about using the `data` block in your configuration.
|
||||
|
||||
@ -1,21 +1,22 @@
|
||||
---
|
||||
description: >
|
||||
The locals block also called the local-variable block defines locals within
|
||||
your Packer configuration.
|
||||
page_title: locals - Blocks
|
||||
The `locals` and `local-variable` blocks declare local variables in
|
||||
your Packer configuration. Learn how to use these blocks to declare local variables in your template.
|
||||
page_title: locals block reference
|
||||
---
|
||||
|
||||
# The `locals` block
|
||||
# `locals` block
|
||||
|
||||
`@include 'from-1.5/beta-hcl2-note.mdx'`
|
||||
This topic provides reference information about the `locals` block.
|
||||
|
||||
The `locals` block, also called the `local-variable` block, defines locals within
|
||||
## Description
|
||||
|
||||
The `locals` and `local-variable` blocks declare local variables in
|
||||
your Packer configuration.
|
||||
|
||||
`@include 'from-1.5/locals/example-block.mdx'`
|
||||
|
||||
# More on variables
|
||||
Refer to the following topics for additional information about using the `locals` and `local-variable` blocks:
|
||||
|
||||
- Read the [full locals](/packer/docs/templates/hcl_templates/locals) description for a more
|
||||
thorough read.
|
||||
- Read the [variables guide](/packer/guides/hcl/variables) for more examples.
|
||||
- [Local Variables](/packer/docs/templates/hcl_templates/locals)
|
||||
- [Input Variables and local variables](/packer/guides/hcl/variables)
|
||||
|
||||
Loading…
Reference in new issue