switch trilean to boolean in docs to prevent confusion (#8673)
This commit is contained in:
parent
18f14fc368
commit
69fe131571
|
@ -114,6 +114,8 @@ func main() {
|
||||||
switch fieldType {
|
switch fieldType {
|
||||||
case "time.Duration":
|
case "time.Duration":
|
||||||
fieldType = `duration string | ex: "1h5m2s"`
|
fieldType = `duration string | ex: "1h5m2s"`
|
||||||
|
case "config.Trilean":
|
||||||
|
fieldType = `boolean`
|
||||||
}
|
}
|
||||||
|
|
||||||
field := Field{
|
field := Field{
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
- `disk_device` (string) - Device information of the related instance:
|
- `disk_device` (string) - Device information of the related instance:
|
||||||
such as /dev/xvdb It is null unless the Status is In_use.
|
such as /dev/xvdb It is null unless the Status is In_use.
|
||||||
|
|
||||||
- `disk_encrypted` (config.Trilean) - Whether or not to encrypt the data disk.
|
- `disk_encrypted` (boolean) - Whether or not to encrypt the data disk.
|
||||||
If this option is set to true, the data disk will be encryped and corresponding snapshot in the target image will also be encrypted. By
|
If this option is set to true, the data disk will be encryped and corresponding snapshot in the target image will also be encrypted. By
|
||||||
default, if this is an extra data disk, Packer will not encrypt the
|
default, if this is an extra data disk, Packer will not encrypt the
|
||||||
data disk. Otherwise, Packer will keep the encryption setting to what
|
data disk. Otherwise, Packer will keep the encryption setting to what
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
uppercase/lowercase letter or a Chinese character, and may contain numbers,
|
uppercase/lowercase letter or a Chinese character, and may contain numbers,
|
||||||
_ or -. It cannot begin with http:// or https://.
|
_ or -. It cannot begin with http:// or https://.
|
||||||
|
|
||||||
- `image_encrypted` (config.Trilean) - Whether or not to encrypt the target images, including those copied if image_copy_regions is specified. If this option
|
- `image_encrypted` (boolean) - Whether or not to encrypt the target images, including those copied if image_copy_regions is specified. If this option
|
||||||
is set to true, a temporary image will be created from the provisioned
|
is set to true, a temporary image will be created from the provisioned
|
||||||
instance in the main region and an encrypted copy will be generated in the
|
instance in the main region and an encrypted copy will be generated in the
|
||||||
same region. By default, Packer will keep the encryption setting to what
|
same region. By default, Packer will keep the encryption setting to what
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
- `associate_public_ip_address` (bool) - Associate Public Ip Address
|
- `associate_public_ip_address` (bool) - Associate Public Ip Address
|
||||||
- `zone_id` (string) - ID of the zone to which the disk belongs.
|
- `zone_id` (string) - ID of the zone to which the disk belongs.
|
||||||
|
|
||||||
- `io_optimized` (config.Trilean) - Whether an ECS instance is I/O optimized or not. If this option is not
|
- `io_optimized` (boolean) - Whether an ECS instance is I/O optimized or not. If this option is not
|
||||||
provided, the value will be determined by product API according to what
|
provided, the value will be determined by product API according to what
|
||||||
`instance_type` is used.
|
`instance_type` is used.
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
[template engine](/docs/templates/engine.html), see [Build template
|
[template engine](/docs/templates/engine.html), see [Build template
|
||||||
data](#build-template-data) for more information.
|
data](#build-template-data) for more information.
|
||||||
|
|
||||||
- `ena_support` (config.Trilean) - Enable enhanced networking (ENA but not SriovNetSupport) on
|
- `ena_support` (boolean) - Enable enhanced networking (ENA but not SriovNetSupport) on
|
||||||
HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
|
HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
|
||||||
AWS IAM policy.
|
AWS IAM policy.
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
associated with AMIs, which have been deregistered by force_deregister.
|
associated with AMIs, which have been deregistered by force_deregister.
|
||||||
Default false.
|
Default false.
|
||||||
|
|
||||||
- `encrypt_boot` (config.Trilean) - Whether or not to encrypt the resulting AMI when
|
- `encrypt_boot` (boolean) - Whether or not to encrypt the resulting AMI when
|
||||||
copying a provisioned instance to an AMI. By default, Packer will keep the
|
copying a provisioned instance to an AMI. By default, Packer will keep the
|
||||||
encryption setting to what it was in the source image. Setting false will
|
encryption setting to what it was in the source image. Setting false will
|
||||||
result in an unencrypted image, and true will result in an encrypted one.
|
result in an unencrypted image, and true will result in an encrypted one.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
- `device_name` (string) - The device name exposed to the instance (for example, /dev/sdh or xvdh).
|
- `device_name` (string) - The device name exposed to the instance (for example, /dev/sdh or xvdh).
|
||||||
Required for every device in the block device mapping.
|
Required for every device in the block device mapping.
|
||||||
|
|
||||||
- `encrypted` (config.Trilean) - Indicates whether or not to encrypt the volume. By default, Packer will
|
- `encrypted` (boolean) - Indicates whether or not to encrypt the volume. By default, Packer will
|
||||||
keep the encryption setting to what it was in the source image. Setting
|
keep the encryption setting to what it was in the source image. Setting
|
||||||
false will result in an unencrypted device, and true will result in an
|
false will result in an unencrypted device, and true will result in an
|
||||||
encrypted one.
|
encrypted one.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- Code generated from the comments of the Config struct in builder/amazon/ebsvolume/builder.go; DO NOT EDIT MANUALLY -->
|
<!-- Code generated from the comments of the Config struct in builder/amazon/ebsvolume/builder.go; DO NOT EDIT MANUALLY -->
|
||||||
|
|
||||||
- `ena_support` (config.Trilean) - Enable enhanced networking (ENA but not SriovNetSupport) on
|
- `ena_support` (boolean) - Enable enhanced networking (ENA but not SriovNetSupport) on
|
||||||
HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
|
HVM-compatible AMIs. If set, add `ec2:ModifyInstanceAttribute` to your
|
||||||
AWS IAM policy. Note: you must make sure enhanced networking is enabled
|
AWS IAM policy. Note: you must make sure enhanced networking is enabled
|
||||||
on your instance. See [Amazon's documentation on enabling enhanced
|
on your instance. See [Amazon's documentation on enabling enhanced
|
||||||
|
|
Loading…
Reference in New Issue