refactor(terraform): rename server to cv-control-plane, fix image and server type defaults
This commit is contained in:
1 parent
8e0c1a8796
commit
c2d356870a
8 files changed
+23
-30
No files matched your search
+3
-2
@@ -22,7 +22,8 @@ on an empty machine. See `OKF_CV_Website/architecture/terraform.md`.
|
||||
|
||||
### 1. Server source — done
|
||||
|
||||
`main.tf` creates `server0` as a Hetzner `hcloud_server` (`cx22`, `ubuntu-24.04`)
|
||||
`main.tf` creates `cv-control-plane` as a Hetzner `hcloud_server` (`cpx32`,
|
||||
`debian-13`)
|
||||
and registers `~/.ssh/cv_infra.pub` as an `hcloud_ssh_key`, so the key is in
|
||||
`authorized_keys` before the machine boots. `terraform.md` and `README.md` still
|
||||
describe `server_host` as an input; they need updating.
|
||||
@@ -54,7 +55,7 @@ Check: `terraform validate` passes.
|
||||
### 5. DNS — written
|
||||
|
||||
`dns.tf` creates `cloudflare_dns_record.apex` from
|
||||
`hcloud_server.server0.ipv4_address`, so the record can only be created after
|
||||
`hcloud_server.control_plane.ipv4_address`, so the record can only be created after
|
||||
the server — one `apply` does both, in order. `proxied = false` is required for
|
||||
Caddy's ACME challenge.
|
||||
|
||||
|
||||
Reference in new issue
Block a user