diff options
Diffstat (limited to 'terraform')
-rw-r--r-- | terraform/libvirt/backend/main.tf | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/terraform/libvirt/backend/main.tf b/terraform/libvirt/backend/main.tf index 24995e0..a8f7e3c 100644 --- a/terraform/libvirt/backend/main.tf +++ b/terraform/libvirt/backend/main.tf @@ -10,11 +10,19 @@ provider "libvirt" { uri = "${var.uri}" } -resource "libvirt_network" "vm_network" { +resource "libvirt_network" "main" { name = "vm_network" addresses = ["10.0.1.0/24"] + + dhcp { + enabled = true + } + + dns { + local_only = true + } } output "network_name" { - value = "${libvirt_network.vm_network.name}" + value = "${libvirt_network.main.name}" } |