Terraform module which creates networks including subnets and optionally router on OpenStack.
Note: This module requires Terraform version 1.5.0 or higher and OpenStack provider version 3.0.0 or higher.
This modules aims to make it more compact to setup network, subnets and routers:
- Create a network and list of defined subnets
- Support for subnet routes
- Support creation of router if needed
- Subnets can be connected with router in module using
@self
notation
Terraform 0.13.
There are several ways to use this module but here are two examples below:
module "example_net" {
source = "haxorof/network/openstack"
name = "example"
router = {
create = true
external_network_name = "ext-net"
}
subnets = [
{ cidr = "192.168.1.0/24", router_id = "@self" },
]
}
This is an open source project under the MIT license.