From 11e81269742974b2fd1752a03de03b6866f9af1e Mon Sep 17 00:00:00 2001 From: Pavel Raunou Date: Wed, 11 Sep 2024 15:21:46 +0200 Subject: [PATCH] Adding stack_type info to the docs --- modules/vmseries/README.md | 2 +- modules/vmseries/variables.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/vmseries/README.md b/modules/vmseries/README.md index 8376807..8306530 100644 --- a/modules/vmseries/README.md +++ b/modules/vmseries/README.md @@ -57,7 +57,7 @@ No modules. | [min\_cpu\_platform](#input\_min\_cpu\_platform) | Minimum CPU platform for the compute instance. Up to date version can be found [here](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). | `string` | `"Intel Cascade Lake"` | no | | [name](#input\_name) | Name of the VM-Series instance. | `string` | n/a | yes | | [named\_ports](#input\_named\_ports) | The list of named ports to create in the instance group:
named_ports = [
{
name = "http"
port = "80"
},
{
name = "app42"
port = "4242"
},
]
The name identifies the backend port to receive the traffic from the global load balancers.
Practically, tcp port 80 named "http" works even when not defined here, but it's not a documented provider's behavior. | `list` | `[]` | no | -| [network\_interfaces](#input\_network\_interfaces) | List of the network interface specifications.
Available options:
- `subnetwork` - (Required\|string) Self-link of a subnetwork to create interface in.
- `private_ip_name` - (Optional\|string) Name for a private IPv4 address to reserve.
- `private_ip` - (Optional\|string) Private IPv4 address to reserve.
- `create_public_ip` - (Optional\|boolean) Whether to reserve public IPv4 address for the interface. Ignored if `public_ip` is provided. Defaults to 'false'.
- `public_ip_name` - (Optional\|string) Name for a public IPv4 address to reserve.
- `public_ip` - (Optional\|string) Existing public IPv4 address to use.
- `public_ptr_domain_name` - (Optional\|string) Existing public IPv4 address PTR name to use.
- `alias_ip_ranges` - (Optional\|list) List of objects that define additional IP ranges for an interface, as specified [here](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#ip_cidr_range)
- `create_public_ipv6` - (Optional\|boolean) Whether to reserve public IPv6 address for the interface. Ignored if `public_ipv6` is provided. Defaults to 'false'.
- `public_ipv6_name` - (Optional\|string) Name for a public IPv6 address to reserve.
- `public_ipv6` - (Optional\|string) Existing public IPv6 address to use.
- `public_ipv6_ptr_domain_name` - (Optional\|string) Existing public IPv6 address PTR name to use. | `list(any)` | n/a | yes | +| [network\_interfaces](#input\_network\_interfaces) | List of the network interface specifications.
Available options:
- `subnetwork` - (Required\|string) Self-link of a subnetwork to create interface in.
- `stack_type` - (Optional\|string) IP stack to use: IPV4\_ONLY (default) or IPV4\_IPV6.
- `private_ip_name` - (Optional\|string) Name for a private IPv4 address to reserve.
- `private_ip` - (Optional\|string) Private IPv4 address to reserve.
- `create_public_ip` - (Optional\|boolean) Whether to reserve public IPv4 address for the interface. Ignored if `public_ip` is provided. Defaults to 'false'.
- `public_ip_name` - (Optional\|string) Name for a public IPv4 address to reserve.
- `public_ip` - (Optional\|string) Existing public IPv4 address to use.
- `public_ptr_domain_name` - (Optional\|string) Existing public IPv4 address PTR name to use.
- `alias_ip_ranges` - (Optional\|list) List of objects that define additional IP ranges for an interface, as specified [here](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#ip_cidr_range)
- `create_public_ipv6` - (Optional\|boolean) Whether to reserve public IPv6 address for the interface. Ignored if `public_ipv6` is provided. Defaults to 'false'.
- `public_ipv6_name` - (Optional\|string) Name for a public IPv6 address to reserve.
- `public_ipv6` - (Optional\|string) Existing public IPv6 address to use.
- `public_ipv6_ptr_domain_name` - (Optional\|string) Existing public IPv6 address PTR name to use. | `list(any)` | n/a | yes | | [project](#input\_project) | n/a | `string` | `null` | no | | [resource\_policies](#input\_resource\_policies) | n/a | `list(string)` | `[]` | no | | [scopes](#input\_scopes) | n/a | `list(string)` |
[
"https://www.googleapis.com/auth/compute.readonly",
"https://www.googleapis.com/auth/cloud.useraccounts.readonly",
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write"
]
| no | diff --git a/modules/vmseries/variables.tf b/modules/vmseries/variables.tf index 8d35caf..1bbfc30 100644 --- a/modules/vmseries/variables.tf +++ b/modules/vmseries/variables.tf @@ -18,6 +18,7 @@ variable "network_interfaces" { List of the network interface specifications. Available options: - `subnetwork` - (Required|string) Self-link of a subnetwork to create interface in. + - `stack_type` - (Optional|string) IP stack to use: IPV4_ONLY (default) or IPV4_IPV6. - `private_ip_name` - (Optional|string) Name for a private IPv4 address to reserve. - `private_ip` - (Optional|string) Private IPv4 address to reserve. - `create_public_ip` - (Optional|boolean) Whether to reserve public IPv4 address for the interface. Ignored if `public_ip` is provided. Defaults to 'false'.