Commit 43c2604c authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Update main.tf

parent 2e58e02f
......@@ -37,6 +37,22 @@ resource "openstack_networking_floatingip_v2" "ohpc" {
pool = "${var.pool}"
}
# creates clusternet
resource "openstack_networking_network_v2" "ohpc2" {
name = "clusternet"
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" "ohpc2" {
name = "clustersubnet"
network_id = "${openstack_networking_network_v2.ohpc2.id}"
cidr = "10.1.1.0/24"
ip_version = 4
}
# creates details for the instance using variables defined in vars.tf and resource for security groups
resource "openstack_compute_instance_v2" "ohpc" {
......
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