Commit bda7bab3 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

changed to use vars borderrouter

parent 57a94316
......@@ -28,14 +28,14 @@ resource "openstack_networking_subnet_v2" "dmzsubnet" {
}
# defines the router borderrouter using floating ip defined in datasources.tf to create the external network id
resource "openstack_networking_router_v2" "borderrouter" {
name = "borderrouter"
resource "openstack_networking_router_v2" "router" {
name = "${var.router}"
admin_state_up = "true"
external_network_id = "${data.openstack_networking_network_v2.public-network.id}"
}
resource "openstack_networking_router_interface_v2" "borderrouter" {
router_id = "${openstack_networking_router_v2.borderrouter.id}"
resource "openstack_networking_router_interface_v2" "router" {
router_id = "${openstack_networking_router_v2.router.id}"
subnet_id = "${openstack_networking_subnet_v2.dmzsubnet.id}"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment