File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
infra/aggregation_mode/terraform Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -7,31 +7,31 @@ variable "zone" {
77variable "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
1313variable "server_name" {
1414 description = " Name of the bare metal server"
1515 type = string
16- default = " postgres-primary "
16+ default = " postgres-1 "
1717}
1818
1919variable "hostname" {
2020 description = " Hostname for the server"
2121 type = string
22- default = " postgres-primary "
22+ default = " postgres-1 "
2323}
2424
2525variable "description" {
2626 description = " Description of the server"
2727 type = string
28- default = " PostgreSQL primary server"
28+ default = " PostgreSQL server 1 "
2929}
3030
3131variable "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
3737variable "ssh_public_key_path" {
@@ -43,5 +43,5 @@ variable "ssh_public_key_path" {
4343variable "tags" {
4444 description = " Tags to apply to the server"
4545 type = list (string )
46- default = [" postgres" , " primary " ]
46+ default = [" postgres" ]
4747}
You can’t perform that action at this time.
0 commit comments