commit 2498bf389129b62db404591ccef349eb27616b91
parent bbedf87a809d4adbfa7fe3bdb47f03a87a74bda9
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date: Mon, 30 Nov 2020 00:30:07 +0200
libvirt_network: Allow a network to be dual stack
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/terraform/modules/libvirt_network/main.tf b/terraform/modules/libvirt_network/main.tf
@@ -1,7 +1,7 @@
resource "libvirt_network" "network" {
name = var.network_name
mode = var.network_mode
- addresses = [var.network_cidr]
+ addresses = var.network_cidr
autostart = var.network_autostart
bridge = var.network_bridge_interface
dns {
diff --git a/terraform/modules/libvirt_network/vars.tf b/terraform/modules/libvirt_network/vars.tf
@@ -8,7 +8,7 @@ variable "network_mode" {
}
variable "network_cidr" {
- type = string
+ type = list(string)
}
variable "network_autostart" {
@@ -21,6 +21,6 @@ variable "network_bridge_interface" {
}
variable "network_dns_enabled" {
- type = bool
+ type = bool
default = true
}