Skip to content

Commit

Permalink
update references to ha count
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu committed Jun 1, 2021
1 parent 190927b commit e95a817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/k3s/external_dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
dns_auth = var.dns_auth
external_dns = templatefile("${path.module}/templates/external-dns-helm.yaml", {
dns_auth = local.dns_auth
master_ips = local.ha_cluster == true ? join(",", slice(var.connections, 0, 3)) : false
master_ips = local.ha_cluster == true ? join(",", slice(var.connections, 0, local.ha_nodes)) : false
})
}

Expand Down
2 changes: 1 addition & 1 deletion service/k3s/traefik.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ locals {
create_certs = var.create_certs
auth_user = var.auth_user
auth_password = var.auth_password == "" ? random_string.default_password.result : var.auth_password
master_ips = local.ha_cluster == true ? join(",", slice(var.connections, 0, 3)) : false
master_ips = local.ha_cluster == true ? join(",", slice(var.connections, 0, local.ha_nodes)) : false
})
}

Expand Down

0 comments on commit e95a817

Please sign in to comment.