Skip to content
Snippets Groups Projects
Commit 014d5918 authored by František Dvořák's avatar František Dvořák
Browse files

Bioportal: floating IP externally

parent 04955b19
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ Configuration:
* public part of ssh key uploaded to OpenStack
* ssh-agent with ssh key
* configured access to OpenStack (for example downloaded *cloud.yaml* file or the environment set)
* floating IP created
# Hadoop image
......
......@@ -189,12 +189,8 @@ resource "openstack_compute_instance_v2" "server" {
}
}
resource "openstack_networking_floatingip_v2" "floatip_1" {
pool = var.public_network
}
resource "openstack_compute_floatingip_associate_v2" "server-fip-1" {
floating_ip = openstack_networking_floatingip_v2.floatip_1.address
floating_ip = var.floating_ip
instance_id = openstack_compute_instance_v2.server[0].id
provisioner "local-exec" {
command = <<EOF
......
......@@ -28,6 +28,10 @@ variable "flavor" {
default = "standard.medium"
}
variable "floating_ip" {
type = string
}
variable "image_id" {
description = "Image id (override other image search values)"
default = null
......@@ -63,12 +67,6 @@ variable "local_network_id" {
default = null
}
variable "public_network" {
description = "Public network name"
default = "public-muni-147-251-124-GROUP"
# default = "public-cesnet-78-128-250-PERSONAL"
}
variable "security_admin_cidr" {
description = "Admin networks (ssh only)"
type = set(string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment