Skip to content

Commit

Permalink
Remove 'map' domains and make a janky string a beautiful list (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten authored Nov 25, 2024
1 parent fcd5aef commit 3f47688
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
9 changes: 8 additions & 1 deletion terraform/dev3.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ mesh_net_block = "10.70.90.0"
mesh_external_ips = [
"199.170.132.46",
]
meshdb_fqdn = "devdb.nycmesh.net,map.devdb.nycmesh.net,adminmap.devdb.nycmesh.net,los-backend.devdb.nycmesh.net,los.devdb.nycmesh.net,forms.devdb.nycmesh.net,devmap.nycmesh.net"
meshdb_fqdn = [
"devdb.nycmesh.net",
"adminmap.devdb.nycmesh.net",
"los-backend.devdb.nycmesh.net",
"los.devdb.nycmesh.net",
"forms.devdb.nycmesh.net",
"devmap.nycmesh.net",
]
2 changes: 1 addition & 1 deletion terraform/mesh_cluster/ansible.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "ansible_group" "lb" {
INTERNAL_NETWORK_RANGE = var.mesh_networkrange
WORKER_IPS = join(";", var.mesh_ips)
NODE_PORT = "80"
MESHDB_FQDN = var.meshdb_fqdn
MESHDB_FQDN = join(",", var.meshdb_fqdn)
MESH_DG = var.mesh_gateway
DATADOG_API_KEY = var.DATADOG_API_KEY
DATADOG_SITE = var.DATADOG_SITE
Expand Down
4 changes: 2 additions & 2 deletions terraform/mesh_cluster/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ variable "mesh_external_ips" {
}

variable "meshdb_fqdn" {
type = string
description = "fqdn meshdb should be responding to"
type = list(string)
description = "FQDNs the cluster should respond to"
}

variable "vm_nic" {
Expand Down
6 changes: 5 additions & 1 deletion terraform/prod1.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ mesh_net_block = "10.70.90.0"
mesh_external_ips = [
"199.170.132.45",
]
meshdb_fqdn = "wiki.nycmesh.net,wiki.mesh.nycmesh.net,los-backend.db.nycmesh.net"
meshdb_fqdn = [
"wiki.nycmesh.net",
"wiki.mesh.nycmesh.net",
"los-backend.db.nycmesh.net",
]
10 changes: 9 additions & 1 deletion terraform/prod2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ mesh_net_block = "10.70.100.0"
mesh_external_ips = [
"23.158.16.22",
]
meshdb_fqdn = "db.nycmesh.net,map.db.nycmesh.net,adminmap.db.nycmesh.net,los.nycmesh.net,forms.nycmesh.net,stats-new.nycmesh.net,map.nycmesh.net,stats.nycmesh.net"
meshdb_fqdn = [
"db.nycmesh.net",
"adminmap.db.nycmesh.net",
"los.nycmesh.net",
"forms.nycmesh.net",
"stats-new.nycmesh.net",
"stats.nycmesh.net",
"map.nycmesh.net",
]
4 changes: 2 additions & 2 deletions terraform/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ variable "mesh_external_ips" {
}

variable "meshdb_fqdn" {
type = string
description = "fqdn meshdb should be responding to"
type = list(string)
description = "FQDNs the cluster should respond to"
}

variable "vm_nic" {
Expand Down

0 comments on commit 3f47688

Please sign in to comment.