Add Pike node

parent 76c49b93
Pipeline #13 passed with stage
......@@ -7,6 +7,7 @@ resource "digitalocean_record" "fos" {
type = "A"
name = "fos"
value = digitalocean_droplet.fos.ipv4_address
ttl = 300
}
resource "digitalocean_record" "fos_aaaa" {
......@@ -14,6 +15,7 @@ resource "digitalocean_record" "fos_aaaa" {
type = "AAAA"
name = "fos"
value = digitalocean_droplet.fos.ipv6_address
ttl = 300
}
resource "digitalocean_record" "fos_private" {
......@@ -21,5 +23,30 @@ resource "digitalocean_record" "fos_private" {
type = "A"
name = "fos.private"
value = digitalocean_droplet.fos.ipv4_address_private
ttl = 300
}
resource "digitalocean_record" "pike" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "pike"
value = digitalocean_droplet.pike.ipv4_address
ttl = 300
}
resource "digitalocean_record" "pike_aaaa" {
domain = digitalocean_domain.ops_ski.name
type = "AAAA"
name = "pike"
value = digitalocean_droplet.pike.ipv6_address
ttl = 300
}
resource "digitalocean_record" "pike_private" {
domain = digitalocean_domain.ops_ski.name
type = "A"
name = "pike.private"
value = digitalocean_droplet.pike.ipv4_address_private
ttl = 300
}
resource "digitalocean_droplet" "pike" {
image = "ubuntu-18-04-x64"
name = "pike.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" "pike" {
project = digitalocean_project.ops_ski.id
resources = [
digitalocean_droplet.pike.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