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

fixed overlooked net and subnet changes

parent 3e920f46
......@@ -49,7 +49,7 @@ resource "openstack_networking_network_v2" "internal_net" {
# cidr is the subnet range (that subnet range and dns nameservers from the network create file in feat-openstack)
resource "openstack_networking_subnet_v2" "internal_subnet" {
name = "${var.internal-subnet}"
network_id = "${openstack_networking_network_v2.internal-subnet.id}"
network_id = "${openstack_networking_network_v2.internal_net.id}"
cidr = "10.1.1.0/24"
ip_version = 4
enable_dhcp = "${var.enable-dhcp}"
......@@ -63,7 +63,7 @@ resource "openstack_networking_floatingip_v2" "ip_pool" {
# creates details for the OHPC instance using variables defined in vars.tf
resource "openstack_compute_instance_v2" "ohpc" {
depends_on = ["openstack_networking_subnet_v2.external_net"]
depends_on = ["openstack_networking_subnet_v2.external_subnet"]
name = "ohpc"
image_name = "${var.image}"
flavor_name = "${var.flavor}"
......
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