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

changed "net" to "network"

parent 5f74a7e9
......@@ -3,7 +3,7 @@ variable "admin_state_up" { }
variable "enable_dhcp" {}
# creates clusternet
resource "openstack_networking_network_v2" "internal_net" {
resource "openstack_networking_network_v2" "internal_network" {
name = "${var.name}net"
admin_state_up = var.admin_state_up
}
......@@ -12,14 +12,14 @@ 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.name}subnet"
network_id = openstack_networking_network_v2.internal_net.id
network_id = openstack_networking_network_v2.internal_network.id
cidr = "10.1.1.0/24"
ip_version = 4
enable_dhcp = var.enable_dhcp
}
output "internal_network_id" {
value = openstack_networking_network_v2.internal_net.id
value = openstack_networking_network_v2.internal_network.id
}
output "internal_subnet_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