Skip to content

Commit

Permalink
Use external VIP for bastion ssh command
Browse files Browse the repository at this point in the history
Signed-off-by: Yussuf Shaikh <[email protected]>
  • Loading branch information
yussufsh committed Dec 15, 2020
1 parent 7895489 commit a5a27c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ output "bastion_public_ip" {
}

output "bastion_ssh_command" {
value = join(", ", formatlist("ssh -i ${var.private_key_file} ${var.rhel_username}@%s", module.prepare.bastion_public_ip))
value = "ssh -i ${var.private_key_file} ${var.rhel_username}@${module.install.bastion_external_vip == "" ? module.prepare.bastion_public_ip[0] : module.install.bastion_external_vip}"
}

output "bootstrap_ip" {
Expand Down

0 comments on commit a5a27c6

Please sign in to comment.