Skip to content

Commit b0fdf98

Browse files
committed
fix(infra): update values
1 parent a7cddc2 commit b0fdf98

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

infra/aggregation_mode/terraform/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ module "postgres_monitor" {
1111
source = "./postgres_monitor"
1212
}
1313

14-
# module "postgres_primary" {
15-
# source = "./postgres_primary"
16-
# }
14+
module "postgres_primary" {
15+
source = "./postgres_primary"
16+
}
1717

1818
# module "postgres_secondary" {
1919
# source = "./postgres_secondary"

infra/aggregation_mode/terraform/postgres_primary/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ resource "scaleway_baremetal_server" "postgres_primary" {
5353
ssh_key_ids = [scaleway_iam_ssh_key.main.id]
5454

5555
# Cloud-init configuration
56-
# cloud_init = templatefile("${path.module}/../cloudinit/scaleway-cloud-init.yaml", {
57-
# hostname = var.hostname
58-
# ssh_public_key = trimspace(file(var.ssh_public_key_path))
59-
# tailscale_auth_key = tailscale_tailnet_key.postgres_primary.key
60-
# })
56+
cloud_init = templatefile("${path.module}/../cloudinit/scaleway-cloud-init.yaml", {
57+
hostname = var.hostname
58+
ssh_public_key = trimspace(file(var.ssh_public_key_path))
59+
tailscale_auth_key = tailscale_tailnet_key.postgres_primary.key
60+
})
6161

6262
tags = var.tags
6363
}

infra/aggregation_mode/terraform/postgres_primary/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ variable "zone" {
77
variable "offer_name" {
88
description = "Name of the bare metal server offer"
99
type = string
10-
default = "EM-A410X-SSD" # Set correct server offer
10+
default = "EM-A610R-NVME" # Set correct server offer
1111
}
1212

1313
variable "server_name" {
1414
description = "Name of the bare metal server"
1515
type = string
16-
default = "postgres-primary"
16+
default = "postgres-1"
1717
}
1818

1919
variable "hostname" {
2020
description = "Hostname for the server"
2121
type = string
22-
default = "postgres-primary"
22+
default = "postgres-1"
2323
}
2424

2525
variable "description" {
2626
description = "Description of the server"
2727
type = string
28-
default = "PostgreSQL primary server"
28+
default = "PostgreSQL server 1"
2929
}
3030

3131
variable "ssh_key_name" {
3232
description = "Name for the SSH key in Scaleway"
3333
type = string
34-
default = "postgres-primary-key"
34+
default = "postgres-1-key"
3535
}
3636

3737
variable "ssh_public_key_path" {
@@ -43,5 +43,5 @@ variable "ssh_public_key_path" {
4343
variable "tags" {
4444
description = "Tags to apply to the server"
4545
type = list(string)
46-
default = ["postgres", "primary"]
46+
default = ["postgres"]
4747
}

0 commit comments

Comments
 (0)