Skip to content

Commit

Permalink
Make TF linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aazon committed May 22, 2024
1 parent 1273a7d commit a450a21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion otc/vpn_server/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ output "wg_config_server" {
}

output "wg_config_peer" {
value = {for key, peer in local.peers : peer.name => data.wireguard_config_document.peer[peer.name].conf}
value = { for key, peer in local.peers : peer.name => data.wireguard_config_document.peer[peer.name].conf }
sensitive = true
}

Expand Down
2 changes: 1 addition & 1 deletion otc/vpn_server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ variable "namespace" {

variable "peers" {
description = "Remote servers that must be Wireguard clients"
type = list(object({
type = list(object({
# Name defines a name of the Service in Kubernetes
name = string
# Name of the Kubernetes Service that will for
Expand Down
2 changes: 1 addition & 1 deletion otc/vpn_server/wireguard.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data "wireguard_config_document" "server" {
listen_port = var.vpn_port
addresses = [var.network_mask]

dynamic peer {
dynamic "peer" {
for_each = {
for peer in local.peers : peer.name => peer
}
Expand Down

0 comments on commit a450a21

Please sign in to comment.