Skip to content

Commit d40e325

Browse files
committed
Add support for PSC interfaces
1 parent 86c66ca commit d40e325

File tree

15 files changed

+42
-32
lines changed

15 files changed

+42
-32
lines changed

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ No resources.
8585
|------|-------------|------|---------|:--------:|
8686
| <a name="input_access_config"></a> [access\_config](#input\_access\_config) | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | <pre>list(object({<br/> nat_ip = string<br/> network_tier = string<br/> }))</pre> | `[]` | no |
8787
| <a name="input_additional_disks"></a> [additional\_disks](#input\_additional\_disks) | Configurations of additional disks to be included on the partition nodes. | <pre>list(object({<br/> disk_name = string<br/> device_name = string<br/> disk_size_gb = number<br/> disk_type = string<br/> disk_labels = map(string)<br/> auto_delete = bool<br/> boot = bool<br/> }))</pre> | `[]` | no |
88-
| <a name="input_additional_networks"></a> [additional\_networks](#input\_additional\_networks) | Additional network interface details for GCE, if any. | <pre>list(object({<br/> network = string<br/> subnetwork = string<br/> subnetwork_project = string<br/> network_ip = string<br/> nic_type = string<br/> stack_type = string<br/> queue_count = number<br/> access_config = list(object({<br/> nat_ip = string<br/> network_tier = string<br/> }))<br/> ipv6_access_config = list(object({<br/> network_tier = string<br/> }))<br/> alias_ip_range = list(object({<br/> ip_cidr_range = string<br/> subnetwork_range_name = string<br/> }))<br/> }))</pre> | `[]` | no |
88+
| <a name="input_additional_networks"></a> [additional\_networks](#input\_additional\_networks) | Additional network interface details for GCE, if any. | <pre>list(object({<br/> network = optional(string)<br/> subnetwork = string<br/> subnetwork_project = optional(string)<br/> network_attachment = optional(string)<br/> network_ip = optional(string, "")<br/> nic_type = optional(string)<br/> stack_type = optional(string)<br/> queue_count = optional(number)<br/> access_config = optional(list(object({<br/> nat_ip = string<br/> network_tier = string<br/> })), [])<br/> ipv6_access_config = optional(list(object({<br/> network_tier = string<br/> })), [])<br/> alias_ip_range = optional(list(object({<br/> ip_cidr_range = string<br/> subnetwork_range_name = string<br/> })), [])<br/> }))</pre> | `[]` | no |
8989
| <a name="input_advanced_machine_features"></a> [advanced\_machine\_features](#input\_advanced\_machine\_features) | See https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance_template#nested_advanced_machine_features | <pre>object({<br/> enable_nested_virtualization = optional(bool)<br/> threads_per_core = optional(number)<br/> turbo_mode = optional(string)<br/> visible_core_count = optional(number)<br/> performance_monitoring_unit = optional(string)<br/> enable_uefi_networking = optional(bool)<br/> })</pre> | <pre>{<br/> "threads_per_core": 1<br/>}</pre> | no |
9090
| <a name="input_allow_automatic_updates"></a> [allow\_automatic\_updates](#input\_allow\_automatic\_updates) | If false, disables automatic system package updates on the created instances. This feature is<br/>only available on supported images (or images derived from them). For more details, see<br/>https://cloud.google.com/compute/docs/instances/create-hpc-vm#disable_automatic_updates | `bool` | `true` | no |
9191
| <a name="input_bandwidth_tier"></a> [bandwidth\_tier](#input\_bandwidth\_tier) | Configures the network interface card and the maximum egress bandwidth for VMs.<br/> - Setting `platform_default` respects the Google Cloud Platform API default values for networking.<br/> - Setting `virtio_enabled` explicitly selects the VirtioNet network adapter.<br/> - Setting `gvnic_enabled` selects the gVNIC network adapter (without Tier 1 high bandwidth).<br/> - Setting `tier_1_enabled` selects both the gVNIC adapter and Tier 1 high bandwidth networking.<br/> - Note: both gVNIC and Tier 1 networking require a VM image with gVNIC support as well as specific VM families and shapes.<br/> - See [official docs](https://cloud.google.com/compute/docs/networking/configure-vm-with-high-bandwidth-configuration) for more details. | `string` | `"platform_default"` | no |

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/variables.tf

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,25 @@ variable "additional_networks" {
345345
description = "Additional network interface details for GCE, if any."
346346
default = []
347347
type = list(object({
348-
network = string
348+
network = optional(string)
349349
subnetwork = string
350-
subnetwork_project = string
351-
network_ip = string
352-
nic_type = string
353-
stack_type = string
354-
queue_count = number
355-
access_config = list(object({
350+
subnetwork_project = optional(string)
351+
network_attachment = optional(string)
352+
network_ip = optional(string, "")
353+
nic_type = optional(string)
354+
stack_type = optional(string)
355+
queue_count = optional(number)
356+
access_config = optional(list(object({
356357
nat_ip = string
357358
network_tier = string
358-
}))
359-
ipv6_access_config = list(object({
359+
})), [])
360+
ipv6_access_config = optional(list(object({
360361
network_tier = string
361-
}))
362-
alias_ip_range = list(object({
362+
})), [])
363+
alias_ip_range = optional(list(object({
363364
ip_cidr_range = string
364365
subnetwork_range_name = string
365-
}))
366+
})), [])
366367
}))
367368
}
368369

community/modules/compute/schedmd-slurm-gcp-v6-nodeset/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ modules. For support with the underlying modules, see the instructions in the
163163
| <a name="input_accelerator_topology"></a> [accelerator\_topology](#input\_accelerator\_topology) | Specifies the shape of the Accelerator (GPU/TPU) slice. | `string` | `null` | no |
164164
| <a name="input_access_config"></a> [access\_config](#input\_access\_config) | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | <pre>list(object({<br/> nat_ip = string<br/> network_tier = string<br/> }))</pre> | `[]` | no |
165165
| <a name="input_additional_disks"></a> [additional\_disks](#input\_additional\_disks) | Configurations of additional disks to be included on the partition nodes. | <pre>list(object({<br/> disk_name = optional(string)<br/> device_name = optional(string)<br/> disk_size_gb = optional(number)<br/> disk_type = optional(string)<br/> disk_labels = optional(map(string))<br/> auto_delete = optional(bool)<br/> boot = optional(bool)<br/> disk_resource_manager_tags = optional(map(string))<br/> }))</pre> | `[]` | no |
166-
| <a name="input_additional_networks"></a> [additional\_networks](#input\_additional\_networks) | Additional network interface details for GCE, if any. | <pre>list(object({<br/> network = optional(string)<br/> subnetwork = string<br/> subnetwork_project = optional(string)<br/> network_ip = optional(string, "")<br/> nic_type = optional(string)<br/> stack_type = optional(string)<br/> queue_count = optional(number)<br/> access_config = optional(list(object({<br/> nat_ip = string<br/> network_tier = string<br/> })), [])<br/> ipv6_access_config = optional(list(object({<br/> network_tier = string<br/> })), [])<br/> alias_ip_range = optional(list(object({<br/> ip_cidr_range = string<br/> subnetwork_range_name = string<br/> })), [])<br/> }))</pre> | `[]` | no |
166+
| <a name="input_additional_networks"></a> [additional\_networks](#input\_additional\_networks) | Additional network interface details for GCE, if any. | <pre>list(object({<br/> network = optional(string)<br/> subnetwork = string<br/> subnetwork_project = optional(string)<br/> network_attachment = optional(string)<br/> network_ip = optional(string, "")<br/> nic_type = optional(string)<br/> stack_type = optional(string)<br/> queue_count = optional(number)<br/> access_config = optional(list(object({<br/> nat_ip = string<br/> network_tier = string<br/> })), [])<br/> ipv6_access_config = optional(list(object({<br/> network_tier = string<br/> })), [])<br/> alias_ip_range = optional(list(object({<br/> ip_cidr_range = string<br/> subnetwork_range_name = string<br/> })), [])<br/> }))</pre> | `[]` | no |
167167
| <a name="input_advanced_machine_features"></a> [advanced\_machine\_features](#input\_advanced\_machine\_features) | See https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance_template#nested_advanced_machine_features | <pre>object({<br/> enable_nested_virtualization = optional(bool)<br/> threads_per_core = optional(number)<br/> turbo_mode = optional(string)<br/> visible_core_count = optional(number)<br/> performance_monitoring_unit = optional(string)<br/> enable_uefi_networking = optional(bool)<br/> })</pre> | <pre>{<br/> "threads_per_core": 1<br/>}</pre> | no |
168168
| <a name="input_allow_automatic_updates"></a> [allow\_automatic\_updates](#input\_allow\_automatic\_updates) | If false, disables automatic system package updates on the created instances. This feature is<br/>only available on supported images (or images derived from them). For more details, see<br/>https://cloud.google.com/compute/docs/instances/create-hpc-vm#disable_automatic_updates | `bool` | `true` | no |
169169
| <a name="input_bandwidth_tier"></a> [bandwidth\_tier](#input\_bandwidth\_tier) | Configures the network interface card and the maximum egress bandwidth for VMs.<br/> - Setting `platform_default` respects the Google Cloud Platform API default values for networking.<br/> - Setting `virtio_enabled` explicitly selects the VirtioNet network adapter.<br/> - Setting `gvnic_enabled` selects the gVNIC network adapter (without Tier 1 high bandwidth).<br/> - Setting `tier_1_enabled` selects both the gVNIC adapter and Tier 1 high bandwidth networking.<br/> - Note: both gVNIC and Tier 1 networking require a VM image with gVNIC support as well as specific VM families and shapes.<br/> - See [official docs](https://cloud.google.com/compute/docs/networking/configure-vm-with-high-bandwidth-configuration) for more details. | `string` | `"platform_default"` | no |

community/modules/compute/schedmd-slurm-gcp-v6-nodeset/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ variable "additional_networks" {
481481
network = optional(string)
482482
subnetwork = string
483483
subnetwork_project = optional(string)
484+
network_attachment = optional(string)
484485
network_ip = optional(string, "")
485486
nic_type = optional(string)
486487
stack_type = optional(string)

0 commit comments

Comments
 (0)