terraform-libvirt/stack/networks.tf

20 lines
419 B
Terraform
Raw Normal View History

2020-07-28 21:45:32 +00:00
# https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r/network.markdown
resource "libvirt_network" "private_network" {
name = "private"
mode = "nat"
domain = "network.local"
addresses = ["10.17.3.0/24"]
autostart = true
dhcp {
enabled = true
}
2021-01-23 20:45:22 +00:00
dns {
enabled = true
local_only = true
forwarders {
address = var.dns_address
}
}
2020-07-28 21:45:32 +00:00
}