Add mail host

parent 08e2273c
Pipeline #27 passed with stage
......@@ -105,3 +105,28 @@ resource "digitalocean_record" "dinghy_private" {
value = digitalocean_droplet.dinghy.ipv4_address_private
ttl = 300
}
resource "digitalocean_record" "mail" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "mail"
value = digitalocean_droplet.mail.ipv4_address
ttl = 300
}
resource "digitalocean_record" "mail_aaaa" {
domain = digitalocean_domain.ops_ski.name
type = "AAAA"
name = "mail"
value = digitalocean_droplet.mail.ipv6_address
ttl = 300
}
resource "digitalocean_record" "mail_private" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "mail.private"
value = digitalocean_droplet.mail.ipv4_address_private
ttl = 300
}
resource "digitalocean_droplet" "mail" {
image = "ubuntu-18-04-x64"
name = "mail.ops.ski"
region = "sfo2"
size = "s-1vcpu-1gb"
ipv6 = true
private_networking = true
ssh_keys = [
digitalocean_ssh_key.ops_ski_tf.id
]
}
resource "digitalocean_project_resources" "mail" {
project = digitalocean_project.ops_ski.id
resources = [
digitalocean_droplet.mail.urn
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment