diff --git a/cmd/struct-markdown/main.go b/cmd/struct-markdown/main.go index 14aa535c4..724bde2da 100644 --- a/cmd/struct-markdown/main.go +++ b/cmd/struct-markdown/main.go @@ -118,7 +118,7 @@ func main() { case "config.Trilean": fieldType = `boolean` case "hcl2template.NameValues": - fieldType = `repeatable "name" & "value" object` + fieldType = `[]{name string, value string}` } field := Field{ diff --git a/website/source/partials/builder/alicloud/ecs/_AlicloudImageConfig-not-required.html.md b/website/source/partials/builder/alicloud/ecs/_AlicloudImageConfig-not-required.html.md index a8e3e5d60..7b868b25f 100644 --- a/website/source/partials/builder/alicloud/ecs/_AlicloudImageConfig-not-required.html.md +++ b/website/source/partials/builder/alicloud/ecs/_AlicloudImageConfig-not-required.html.md @@ -51,7 +51,7 @@ - `tags` (map[string]string) - Tags applied to the destination image and relevant snapshots. -- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block +- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/amazon/chroot/_Config-not-required.html.md b/website/source/partials/builder/amazon/chroot/_Config-not-required.html.md index 066deefed..a2519bee2 100644 --- a/website/source/partials/builder/amazon/chroot/_Config-not-required.html.md +++ b/website/source/partials/builder/amazon/chroot/_Config-not-required.html.md @@ -125,7 +125,7 @@ engine](/docs/templates/engine.html), see [Build template data](#build-template-data) for more information. -- `root_volume_tag` (repeatable "name" & "value" object) - Same as [`root_volume_tags`](#root_volume_tags) but defined as a +- `root_volume_tag` ([]{name string, value string}) - Same as [`root_volume_tags`](#root_volume_tags) but defined as a singular block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/amazon/common/_AMIConfig-not-required.html.md b/website/source/partials/builder/amazon/common/_AMIConfig-not-required.html.md index 792dc9233..b2d595896 100644 --- a/website/source/partials/builder/amazon/common/_AMIConfig-not-required.html.md +++ b/website/source/partials/builder/amazon/common/_AMIConfig-not-required.html.md @@ -32,7 +32,7 @@ [template engine](/docs/templates/engine.html), see [Build template data](#build-template-data) for more information. -- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block +- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. @@ -103,7 +103,7 @@ [template engine](../templates/engine.html), see [Build template data](#build-template-data) for more information. -- `snapshot_tag` (repeatable "name" & "value" object) - Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular +- `snapshot_tag` ([]{name string, value string}) - Same as [`snapshot_tags`](#snapshot_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/amazon/common/_RunConfig-not-required.html.md b/website/source/partials/builder/amazon/common/_RunConfig-not-required.html.md index ff7897470..c79d15ca0 100644 --- a/website/source/partials/builder/amazon/common/_RunConfig-not-required.html.md +++ b/website/source/partials/builder/amazon/common/_RunConfig-not-required.html.md @@ -113,7 +113,7 @@ EBS volumes. This is a [template engine](/docs/templates/engine.html), see [Build template data](#build-template-data) for more information. -- `run_tag` (repeatable "name" & "value" object) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable +- `run_tag` ([]{name string, value string}) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. @@ -205,7 +205,7 @@ - `spot_tags` (map[string]string) - Requires spot_price to be set. This tells Packer to apply tags to the spot request that is issued. -- `spot_tag` (repeatable "name" & "value" object) - Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block +- `spot_tag` ([]{name string, value string}) - Same as [`spot_tags`](#spot_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/amazon/ebsvolume/_BlockDevice-not-required.html.md b/website/source/partials/builder/amazon/ebsvolume/_BlockDevice-not-required.html.md index b44590dfd..56fe38e38 100644 --- a/website/source/partials/builder/amazon/ebsvolume/_BlockDevice-not-required.html.md +++ b/website/source/partials/builder/amazon/ebsvolume/_BlockDevice-not-required.html.md @@ -4,7 +4,7 @@ completes. This is a [template engine](/docs/templates/engine.html), see [Build template data](#build-template-data) for more information. -- `tag` (repeatable "name" & "value" object) - Same as [`tags`](#tags) but defined as a singular repeatable block +- `tag` ([]{name string, value string}) - Same as [`tags`](#tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/amazon/ebsvolume/_Config-not-required.html.md b/website/source/partials/builder/amazon/ebsvolume/_Config-not-required.html.md index c2954dba2..bc4464a25 100644 --- a/website/source/partials/builder/amazon/ebsvolume/_Config-not-required.html.md +++ b/website/source/partials/builder/amazon/ebsvolume/_Config-not-required.html.md @@ -36,7 +36,7 @@ configured in the `ebs_volumes` section as soon as the instance is reported as 'ready'. -- `run_volume_tag` (repeatable "name" & "value" object) - Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular +- `run_volume_tag` ([]{name string, value string}) - Same as [`run_volume_tags`](#run_volume_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) diff --git a/website/source/partials/builder/azure/arm/_Config-not-required.html.md b/website/source/partials/builder/azure/arm/_Config-not-required.html.md index ba5be41d6..b4ee7aecc 100644 --- a/website/source/partials/builder/azure/arm/_Config-not-required.html.md +++ b/website/source/partials/builder/azure/arm/_Config-not-required.html.md @@ -100,7 +100,7 @@ 256 characters. Tags are applied to every resource deployed by a Packer build, i.e. Resource Group, VM, NIC, VNET, Public IP, KeyVault, etc. -- `azure_tag` (repeatable "name" & "value" object) - Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block +- `azure_tag` ([]{name string, value string}) - Same as [`azure_tags`](#azure_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/hyperone/_Config-not-required.html.md b/website/source/partials/builder/hyperone/_Config-not-required.html.md index a510fe6e2..30ec224f7 100644 --- a/website/source/partials/builder/hyperone/_Config-not-required.html.md +++ b/website/source/partials/builder/hyperone/_Config-not-required.html.md @@ -17,7 +17,7 @@ - `image_tags` (map[string]string) - Key/value pair tags to add to the created image. -- `image_tag` (repeatable "name" & "value" object) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable +- `image_tag` ([]{name string, value string}) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. @@ -29,7 +29,7 @@ - `vm_tags` (map[string]string) - Key/value pair tags to add to the created server. -- `vm_tag` (repeatable "name" & "value" object) - Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block +- `vm_tag` ([]{name string, value string}) - Same as [`vm_tags`](#vm_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/tencentcloud/cvm/_TencentCloudRunConfig-not-required.html.md b/website/source/partials/builder/tencentcloud/cvm/_TencentCloudRunConfig-not-required.html.md index f68a26658..73e31c9fb 100644 --- a/website/source/partials/builder/tencentcloud/cvm/_TencentCloudRunConfig-not-required.html.md +++ b/website/source/partials/builder/tencentcloud/cvm/_TencentCloudRunConfig-not-required.html.md @@ -55,7 +55,7 @@ - `run_tags` (map[string]string) - Tags to apply to the instance that is *launched* to create the image. These tags are *not* applied to the resulting image. -- `run_tag` (repeatable "name" & "value" object) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable +- `run_tag` ([]{name string, value string}) - Same as [`run_tags`](#run_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/triton/_SourceMachineConfig-not-required.html.md b/website/source/partials/builder/triton/_SourceMachineConfig-not-required.html.md index 284a4aeb0..8e2fb1d1c 100644 --- a/website/source/partials/builder/triton/_SourceMachineConfig-not-required.html.md +++ b/website/source/partials/builder/triton/_SourceMachineConfig-not-required.html.md @@ -25,7 +25,7 @@ - `source_machine_tags` (map[string]string) - Tags applied to the VM used to create the image. -- `source_machine_tag` (repeatable "name" & "value" object) - Same as [`source_machine_tags`](#source_machine_tags) but defined as a +- `source_machine_tag` ([]{name string, value string}) - Same as [`source_machine_tags`](#source_machine_tags) but defined as a singular block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically. diff --git a/website/source/partials/builder/triton/_TargetImageConfig-not-required.html.md b/website/source/partials/builder/triton/_TargetImageConfig-not-required.html.md index 673fab41b..9aa28adbf 100644 --- a/website/source/partials/builder/triton/_TargetImageConfig-not-required.html.md +++ b/website/source/partials/builder/triton/_TargetImageConfig-not-required.html.md @@ -15,7 +15,7 @@ - `image_tags` (map[string]string) - Tag applied to the image. -- `image_tag` (repeatable "name" & "value" object) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable +- `image_tag` ([]{name string, value string}) - Same as [`image_tags`](#image_tags) but defined as a singular repeatable block containing a `name` and a `value` field. In HCL2 mode the [`dynamic_block`](https://packer.io/docs/configuration/from-1.5/expressions.html#dynamic-blocks) will allow you to create those programatically.