Commit 041276fa authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Update main.tf

parent 32aa89eb
......@@ -93,3 +93,17 @@ resource "openstack_compute_floatingip_associate_v2" "terraform" {
floating_ip = "${openstack_networking_floatingip_v2.terraform.address}"
instance_id = "${openstack_compute_instance_v2.terraform.id}"
}
# creates clusternet
resource "openstack_networking_network_v2" "terraform" {
name = "clusternet"
admin_state_up = "true"
}
# creates dmzsubnet using the instance id
# cidr is the subnet range (that subnet range and dns nameservers from the network create file in feat-openstack)
resource "openstack_networking_subnet_v2" "terraform" {
name = "clustersubnet"
instance_id = "${openstack_compute_instance_v2.terraform.id}"
cidr = "10.1.1.0/24"
ip_version = 4
Supports Markdown
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