switch trilean to boolean in docs to prevent confusion (#8673)

This commit is contained in:
Megan Marsh 2020-01-31 07:42:16 -08:00 committed by GitHub
parent 18f14fc368
commit 69fe131571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 7 deletions

View File

@ -114,6 +114,8 @@ func main() {
switch fieldType {
case "time.Duration":
fieldType = `duration string | ex: "1h5m2s"`
case "config.Trilean":
fieldType = `boolean`
}
field := Field{

View File

@ -30,7 +30,7 @@
- `disk_device` (string) - Device information of the related instance:
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
default, if this is an extra data disk, Packer will not encrypt the
data disk. Otherwise, Packer will keep the encryption setting to what

View File

@ -19,7 +19,7 @@
uppercase/lowercase letter or a Chinese character, and may contain numbers,
_ 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
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

View File

@ -3,7 +3,7 @@
- `associate_public_ip_address` (bool) - Associate Public Ip Address
- `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
`instance_type` is used.

View File

@ -32,7 +32,7 @@
[template engine](/docs/templates/engine.html), see [Build template
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
AWS IAM policy.
@ -54,7 +54,7 @@
associated with AMIs, which have been deregistered by force_deregister.
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
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.

View File

@ -8,7 +8,7 @@
- `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.
- `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
false will result in an unencrypted device, and true will result in an
encrypted one.

View File

@ -1,6 +1,6 @@
<!-- 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
AWS IAM policy. Note: you must make sure enhanced networking is enabled
on your instance. See [Amazon's documentation on enabling enhanced