create tf infra for crocus and dns
This commit is contained in:
parent
aedd4a6f1c
commit
f6e040da19
7 changed files with 141 additions and 0 deletions
23
infra/dns.tf
Normal file
23
infra/dns.tf
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
data "gandi_livedns_domain" "rpqt_fr" {
|
||||
name = "rpqt.fr"
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_radicle_a" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "radicle"
|
||||
type = "A"
|
||||
ttl = 10800
|
||||
values = [
|
||||
hcloud_server.crocus_server.ipv4_address,
|
||||
]
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "rpqt_fr_radicle_aaaa" {
|
||||
zone = data.gandi_livedns_domain.rpqt_fr.id
|
||||
name = "radicle"
|
||||
type = "AAAA"
|
||||
ttl = 10800
|
||||
values = [
|
||||
hcloud_server.crocus_server.ipv6_address,
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue