Skip to content

Commit 3d11643

Browse files
committed
chore: adding worker node ip
1 parent 75635cd commit 3d11643

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

modules/buildingblocks/seaweedfs-composition/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ resource "meshstack_building_block_v2" "namespace" {
118118
redirect_http_to_https = { value_bool = true }
119119
lets_encrypt_challenge = { value_string = local.lets_encrypt_challenge }
120120
lets_encrypt_dns_provider = { value_string = local.lets_encrypt_dns_provider }
121+
worker_node_ips = { value_string = var.ionos_public_ip }
122+
121123
# ionos_dns_token is set as static value in the building block definition
122124
}
123125
}

modules/buildingblocks/seaweedfs-instance/variables.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ variable "ionos_dns_zone_id" {
186186
}
187187

188188
variable "worker_node_ips" {
189-
type = list(string)
190-
default = []
191-
description = "List of worker node public IPs for DNS A records. When set, DNS records are created pointing to these IPs."
189+
type = string
190+
description = "worker node public IPs for DNS A records. When set, DNS records are created pointing to these IPs."
192191
}
193192

0 commit comments

Comments
 (0)