Skip to content

Commit ef80af4

Browse files
committed
Fix
1 parent 32c721f commit ef80af4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/provision/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "terraform_data" "deploy_puppetserver_files" {
7474
bastion_user = "tf"
7575
bastion_private_key = var.configuration.ssh_key.private
7676
user = "tf"
77-
host = local.puppetservers_are_bastion ? each.value.public_ip : each.value.local_ip
77+
host = local.puppetservers_are_bastion && each.value.public_ip != "" ? each.value.public_ip : each.value.local_ip
7878
private_key = var.configuration.ssh_key.private
7979
}
8080

0 commit comments

Comments
 (0)