Skip to content

Commit

Permalink
fix: make connect iterable in hosts file (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
gene-redpanda authored Mar 27, 2024
1 parent 68c0043 commit d674050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible-hosts-file.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ resource "local_file" "hosts_ini" {
enable_connect = var.enable_connect
monitor_public_ip = try(var.enable_monitoring ? aws_instance.prometheus[0].public_ip : "")
monitor_private_ip = try(var.enable_monitoring ? aws_instance.prometheus[0].private_ip : "")
connect_public_ips = try(var.enable_connect ? aws_instance.connect[0].public_ip : "")
connect_private_ips = try(var.enable_connect ? aws_instance.connect[0].private_ip : "")
connect_public_ips = try(var.enable_connect ? aws_instance.connect[*].public_ip : [])
connect_private_ips = try(var.enable_connect ? aws_instance.connect[*].private_ip : [])
rack = var.ha ? aws_instance.broker[*].placement_partition_number : aws_instance.broker[*].availability_zone
rack_awareness = var.ha || length(var.availability_zone) > 1
availability_zone = aws_instance.broker[*].availability_zone
Expand Down

0 comments on commit d674050

Please sign in to comment.