Commit 57a94316 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

updated clusternet info to internal net and uses vars external net

parent 252712bc
......@@ -41,15 +41,15 @@ resource "openstack_networking_router_interface_v2" "borderrouter" {
# creates clusternet
resource "openstack_networking_network_v2" "clusternet" {
name = "clusternet"
resource "openstack_networking_network_v2" "internal_net" {
name = "${var.internal-net}"
admin_state_up = "true"
}
# creates clustersubnet
# cidr is the subnet range (that subnet range and dns nameservers from the network create file in feat-openstack)
resource "openstack_networking_subnet_v2" "clustersubnet" {
name = "clustersubnet"
network_id = "${openstack_networking_network_v2.clusternet.id}"
resource "openstack_networking_subnet_v2" "internal_subnet" {
name = "${var.internal-subnet}"
network_id = "${openstack_networking_network_v2.internal-subnet.id}"
cidr = "10.1.1.0/24"
ip_version = 4
enable_dhcp = "${var.enable-dhcp}"
......
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