Create dinghy

parent b389be9a
Pipeline #18 passed with stage
......@@ -66,3 +66,27 @@ resource "digitalocean_record" "ldap_service_private" {
value = digitalocean_droplet.ldap_service.ipv4_address_private
ttl = 300
}
resource "digitalocean_record" "dinghy" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "dinghy"
value = digitalocean_droplet.dinghy.ipv4_address
ttl = 300
}
resource "digitalocean_record" "dinghy_aaaa" {
domain = digitalocean_domain.ops_ski.name
type = "AAAA"
name = "dinghy"
value = digitalocean_droplet.dinghy.ipv6_address
ttl = 300
}
resource "digitalocean_record" "dinghy_private" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "dinghy.private"
value = digitalocean_droplet.dinghy.ipv4_address_private
ttl = 300
}
resource "digitalocean_droplet" "dinghy" {
image = "ubuntu-18-04-x64"
name = "dinghy.ops.ski"
region = "sfo2"
size = "s-2vcpu-2gb"
ipv6 = true
private_networking = true
ssh_keys = [
digitalocean_ssh_key.ops_ski_tf.id
]
}
resource "digitalocean_project_resources" "dinghy" {
project = digitalocean_project.ops_ski.id
resources = [
digitalocean_droplet.dinghy.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