Skip to content

Instantly share code, notes, and snippets.

@moio
Created October 13, 2016 06:51
Show Gist options
  • Save moio/893989f6209ae2c4106c59e61a481f49 to your computer and use it in GitHub Desktop.
Save moio/893989f6209ae2c4106c59e61a481f49 to your computer and use it in GitHub Desktop.
terraform-provider-libvirt main.tf to create a NAT network
provider "libvirt" {
uri = "qemu:///system"
}
resource "libvirt_network" "network" {
name = "mynetwork"
mode = "nat"
domain = "whatever.local"
addresses = ["192.168.127.0/24"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment