Skip to content
Snippets Groups Projects
Commit 2b61b34d authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Update main.tf

parent 69a97521
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,14 @@ variable "enable_dhcp" {}
# creates clusternet
resource "openstack_networking_network_v2" "internal_net" {
name = "${var.name}-net"
name = "${var.name}net"
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)
resource "openstack_networking_subnet_v2" "internal_subnet" {
name = "${var.name}-subnet"
name = "${var.name}subnet"
network_id = openstack_networking_network_v2.internal_net.id
cidr = "10.1.1.0/24"
ip_version = 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment