-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
23 lines (21 loc) · 905 Bytes
/
Copy pathmain.tf
File metadata and controls
23 lines (21 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#**************************** Management network ******************************
module "apps_network" {
#source = "../terraform-os-network/"
source = "git@github.com:shepherdcloud/terraform-openstack-network.git"
network_name = "${var.project_name}-apps-net"
network_tags = ["${var.project_name}", "apps", "shepherdcloud"]
network_description = "${var.network_description}"
subnets = [
{
subnet_name = "${var.project_name}-apps-subnet"
subnet_cidr = "10.10.12.0/24"
subnet_ip_version = 4
subnet_tags = "${var.project_name}, apps, shepherdcloud"
}
]
}
#**************************** Router setup *******************************
resource "openstack_networking_router_interface_v2" "router_interface_apps" {
router_id = "${var.project_router_id}"
subnet_id = "${module.apps_network.subnet_ids[0]}"
}