ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 195bae4b39aa0f6f749be148f824f395eb8c5e49
parent 3f4e2d95cca5d4ea531c92b3b12d808c338fc6d9
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Wed, 30 Oct 2019 22:25:44 +0200

libvirt_network: Add variable for disabling DNS

Diffstat:
terraform/modules/libvirt_network/main.tf | 13++++++++-----
terraform/modules/libvirt_network/vars.tf | 5+++++
2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/terraform/modules/libvirt_network/main.tf b/terraform/modules/libvirt_network/main.tf @@ -1,7 +1,10 @@ resource "libvirt_network" "network" { - name = "${var.network_name}" - mode = "${var.network_mode}" - addresses = ["${var.network_cidr}"] - autostart = "${var.network_autostart}" - bridge = "${var.network_bridge_interface}" + name = var.network_name + mode = var.network_mode + addresses = [var.network_cidr] + autostart = var.network_autostart + bridge = var.network_bridge_interface + dns { + enabled = var.network_dns_enabled + } } diff --git a/terraform/modules/libvirt_network/vars.tf b/terraform/modules/libvirt_network/vars.tf @@ -19,3 +19,8 @@ variable "network_autostart" { variable "network_bridge_interface" { type = string } + +variable "network_dns_enabled" { + type = bool + default = true +}