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

update to use admin state up variable

parent df53e2e9
......@@ -15,7 +15,7 @@ resource "openstack_compute_keypair_v2" "keypair" {
# creates dmznet
resource "openstack_networking_network_v2" "external_net" {
name = "${var.external-net}"
admin_state_up = "true"
admin_state_up = "${var.admin_state_up}"
}
resource "openstack_networking_subnet_v2" "external_subnet" {
......@@ -30,7 +30,7 @@ resource "openstack_networking_subnet_v2" "external_subnet" {
# defines the router borderrouter using floating ip defined in datasources.tf to create the external network id
resource "openstack_networking_router_v2" "router" {
name = "${var.router}"
admin_state_up = "true"
admin_state_up = "${var.admin_state_up}"
external_network_id = "${data.openstack_networking_network_v2.public-network.id}"
}
......@@ -43,7 +43,7 @@ resource "openstack_networking_router_interface_v2" "router" {
# creates clusternet
resource "openstack_networking_network_v2" "internal_net" {
name = "${var.internal-net}"
admin_state_up = "true"
admin_state_up = "${var.admin_state_up}"
}
# creates clustersubnet
# cidr is the subnet range (that subnet range and dns nameservers from the network create file in feat-openstack)
......
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