Skip to content

Commit d11b3c0

Browse files
authored
feat: add possibility to set accelerated_networking_enabled and ip_forwarding_enabled in the network interface (#99)
Signed-off-by: christianjedro <cj@cloudeteer.de>
1 parent 537a9d5 commit d11b3c0

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ Type: `string`
202202

203203
The following input variables are optional (have default values):
204204

205+
### <a name="input_accelerated_networking_enabled"></a> [accelerated\_networking\_enabled](#input\_accelerated\_networking\_enabled)
206+
207+
Description: Enable accelerated networking on the network interface created by this module. Only applies when create\_network\_interface is true.
208+
209+
Type: `bool`
210+
211+
Default: `false`
212+
205213
### <a name="input_additional_capabilities"></a> [additional\_capabilities](#input\_additional\_capabilities)
206214

207215
Description: Enable additional capabilities.
@@ -603,6 +611,14 @@ object({
603611

604612
Default: `null`
605613

614+
### <a name="input_ip_forwarding_enabled"></a> [ip\_forwarding\_enabled](#input\_ip\_forwarding\_enabled)
615+
616+
Description: Enable ip forwarding on the network interface created by this module. Only applies when create\_network\_interface is true.
617+
618+
Type: `bool`
619+
620+
Default: `false`
621+
606622
### <a name="input_key_vault_id"></a> [key\_vault\_id](#input\_key\_vault\_id)
607623

608624
Description: The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.

r-network.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ resource "azurerm_network_interface" "this" {
3232

3333
dns_servers = var.dns_servers
3434

35+
accelerated_networking_enabled = var.accelerated_networking_enabled
36+
ip_forwarding_enabled = var.ip_forwarding_enabled
37+
3538
ip_configuration {
3639
name = "ipconfig1"
3740
private_ip_address = var.private_ip_address

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ locals {
1313
windows_license_types = ["None", "Windows_Client", "Windows_Server"]
1414
}
1515

16+
variable "accelerated_networking_enabled" {
17+
description = "Enable accelerated networking on the network interface created by this module. Only applies when create_network_interface is true."
18+
type = bool
19+
default = false
20+
}
21+
1622
variable "additional_capabilities" {
1723
description = <<-EOT
1824
Enable additional capabilities.
@@ -444,6 +450,12 @@ variable "image" {
444450
}
445451
}
446452

453+
variable "ip_forwarding_enabled" {
454+
description = "Enable ip forwarding on the network interface created by this module. Only applies when create_network_interface is true."
455+
type = bool
456+
default = false
457+
}
458+
447459
variable "key_vault_id" {
448460
description = <<-EOT
449461
The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.

0 commit comments

Comments
 (0)