File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ locals {
727727
728728# locals needed for ssh connection
729729locals {
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 } " : " "
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ output "image_details" {
2828
2929output "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
3434output "ssh_to_login_node" {
You can’t perform that action at this time.
0 commit comments