Skip to content

atlet99/openstack-tf-network-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform OpenStack Network Module

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.

Features

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 versions

Terraform 0.13.

Usage

There are several ways to use this module but here are two examples below:

Network with one subnet and router

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" },
  ]
}

License

This is an open source project under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages