document srv and dynamic records

main
Ricard Illa 2022-08-23 18:37:03 +02:00
parent 1d25b0aa12
commit d976472895
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 37 additions and 1 deletions

View File

@ -1,4 +1,40 @@
// Important:
// Due to API restrictions, SRV and Dynamic DNS Records can't be created with
// terraform, so I need to use `MERGE` mode and set those manually on the
// namecheap web UI
// https://registry.terraform.io/providers/namecheap/namecheap/latest/docs
//
// - SRV Record:
// service: _matrix
// protocol: _tcp
// priority: 0
// weight: 10
// port: 443
// target: matrix.monotremata.xyz
// TTL: 30 min
//
// - SRV Record:
// service: _xmpp-client
// protocol: _tcp
// priority: 5
// weight: 0
// port: 5222
// target: xmpp.monotremata.xyz
// TTL: 30 min
//
// - SRV Record:
// service: _xmpp-server
// protocol: _tcp
// priority: 5
// weight: 0
// port: 5269
// target: xmpp.monotremata.xyz
// TTL: 30 min
//
// - A + Dynamic DNS Record:
// host: wg
variable "hosts" {
default = {
@ -97,7 +133,7 @@ provider "namecheap" {
resource "namecheap_domain_records" "monotremata-xyz" {
domain = "monotremata.xyz"
mode = "MERGE" // maybe eventually move to OVERWRITE
mode = "MERGE"
dynamic "record" {
for_each = var.caladan-subdomains