Skip to content

Commit 856f8d0

Browse files
committed
fixing the cluster deployment issue
1 parent d1fc481 commit 856f8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ locals {
727727

728728
# locals needed for ssh connection
729729
locals {
730-
ssh_forward_host = var.enable_deployer ? "" : (length(local.mgmt_hosts_ips) == 1 ? local.mgmt_hosts_ips[0] : local.mgmt_hosts_ips[1])
730+
ssh_forward_host = var.enable_deployer ? "" : var.scheduler == "LSF" ? (length(local.mgmt_hosts_ips) == 1 ? local.mgmt_hosts_ips[0] : local.mgmt_hosts_ips[1]) : ""
731731
ssh_forwards = var.enable_deployer ? "" : var.scheduler == "LSF" ? "-L 8443:${local.ssh_forward_host}:8443 -L 6080:${local.ssh_forward_host}:6080 -L 8444:${local.ssh_forward_host}:8444" : ""
732732
ssh_jump_host = var.enable_deployer ? "" : var.scheduler == "LSF" ? local.bastion_instance_public_ip != null ? local.bastion_instance_public_ip : var.bastion_fip : ""
733733
ssh_jump_option = var.enable_deployer ? "" : var.scheduler == "LSF" ? "-J ubuntu@${local.ssh_jump_host}" : ""

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ output "image_details" {
2828

2929
output "ssh_to_management_node" {
3030
description = "SSH command to connect to the management node"
31-
value = var.scheduler == "LSF" && (var.enable_deployer == false) && length(local.mgmt_hosts_ips) > 0 ? "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -J ubuntu@${var.bastion_fip} vpcuser@${local.mgmt_hosts_ips[0]}" : null
31+
value = var.scheduler == "LSF" && (var.enable_deployer == false) && length(local.mgmt_hosts_ips) > 0 ? "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -J ubuntu@${var.bastion_fip} lsfadmin@${local.mgmt_hosts_ips[0]}" : null
3232
}
3333

3434
output "ssh_to_login_node" {

0 commit comments

Comments
 (0)