terraform-libvirt/stack/networks.tf
Antoine f70970f0e4
Add third domain, generate ansible toml inventory
generate ansible inventory from terraform provisioned domain
add make hazelcast to run and setup hazelcast onto domain
2021-01-24 21:51:16 +01:00

21 lines
503 B
HCL

# https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/website/docs/r/network.markdown
resource "libvirt_network" "private_network" {
name = "private"
mode = "bridge" # "nat"
bridge = "br0" # only for bridge mode
# domain = "network.local" # only for nat mode
# addresses = [var.ip] # only for nat mode
autostart = true
dhcp {
enabled = true
}
dns {
enabled = true
local_only = true
forwarders {
address = var.dns_address
}
}
}