summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terraform/infra.tf9
1 files changed, 9 insertions, 0 deletions
diff --git a/terraform/infra.tf b/terraform/infra.tf
index cd28f51c..45cb9402 100644
--- a/terraform/infra.tf
+++ b/terraform/infra.tf
@@ -19,6 +19,15 @@ resource "openstack_networking_port_v2" "frontend_port" {
}
}
+resource "openstack_networking_floatingip_v2" "floatip_frontend" {
+ pool = "ext-net"
+}
+
+resource "openstack_networking_floatingip_associate_v2" "floatip_associate_frontend" {
+ floating_ip = "${openstack_networking_floatingip_v2.floatip_frontend.address}"
+ port_id = "${openstack_networking_port_v2.frontend_port.id}"
+}
+
resource "openstack_compute_instance_v2" "baserock_frontend" {
name = "frontend-haproxy"
image_id = data.openstack_images_image_v2.image_id.id