58 lines
1.4 KiB
Terraform
58 lines
1.4 KiB
Terraform
|
resource "digitalocean_domain" "allaroundhere" {
|
||
|
name = "allaroundhere.org"
|
||
|
}
|
||
|
|
||
|
|
||
|
# ==========================================================================
|
||
|
# Standard hostname configuration
|
||
|
resource "digitalocean_record" "allaroundhere" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "A"
|
||
|
name = "@"
|
||
|
value = "24.2.156.189"
|
||
|
ttl = 3600
|
||
|
}
|
||
|
|
||
|
resource "digitalocean_record" "allaroundhere_www" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "CNAME"
|
||
|
name = "www"
|
||
|
value = "@"
|
||
|
ttl = 43200
|
||
|
}
|
||
|
|
||
|
resource "digitalocean_record" "allaroundhere_content" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "CNAME"
|
||
|
name = "content"
|
||
|
value = "en1.enp.one."
|
||
|
ttl = 10300
|
||
|
}
|
||
|
|
||
|
# ==========================================================================
|
||
|
# Standard DO configuration for all managed domains, includes
|
||
|
# NS records and SOA
|
||
|
resource "digitalocean_record" "allaroundhere_ns1" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "NS"
|
||
|
name = "@"
|
||
|
value = "ns1.digitalocean.com."
|
||
|
ttl = 1800
|
||
|
}
|
||
|
|
||
|
resource "digitalocean_record" "allaroundhere_ns2" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "NS"
|
||
|
name = "@"
|
||
|
value = "ns2.digitalocean.com."
|
||
|
ttl = 1800
|
||
|
}
|
||
|
|
||
|
resource "digitalocean_record" "allaroundhere_ns3" {
|
||
|
domain = digitalocean_domain.allaroundhere.id
|
||
|
type = "NS"
|
||
|
name = "@"
|
||
|
value = "ns3.digitalocean.com."
|
||
|
ttl = 1800
|
||
|
}
|