Skip to content
Snippets Groups Projects
Commit b4bc023f authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Remove custom connection for floating ip

parent 7626fea6
Branches feat_use_existing_router_and_network
No related tags found
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #8341 passed with stages
in 6 minutes and 37 seconds
...@@ -61,13 +61,6 @@ resource "openstack_compute_instance_v2" "ohpc" { ...@@ -61,13 +61,6 @@ resource "openstack_compute_instance_v2" "ohpc" {
resource "openstack_compute_floatingip_associate_v2" "ohpc" { resource "openstack_compute_floatingip_associate_v2" "ohpc" {
floating_ip = var.floating_ip_ohpc floating_ip = var.floating_ip_ohpc
instance_id = openstack_compute_instance_v2.ohpc.id instance_id = openstack_compute_instance_v2.ohpc.id
# defines ssh connection
connection {
host = format(var.host_prefix,element(split(".", var.floating_ip_ohpc),3,),)
user = var.ohpc_user
private_key = file(var.ssh_private_key)
}
} }
output "id" { output "id" {
......
...@@ -68,13 +68,6 @@ resource "openstack_compute_instance_v2" "ood" { ...@@ -68,13 +68,6 @@ resource "openstack_compute_instance_v2" "ood" {
resource "openstack_compute_floatingip_associate_v2" "ood" { resource "openstack_compute_floatingip_associate_v2" "ood" {
floating_ip = var.floating_ip_ood floating_ip = var.floating_ip_ood
instance_id = openstack_compute_instance_v2.ood.id instance_id = openstack_compute_instance_v2.ood.id
# defines ssh connection
connection {
host = format(var.host-prefix,element(split(".", var.floating_ip_ood),3,),)
user = var.ood_user
private_key = file(var.ssh_private_key)
}
} }
......
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