You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.3 KiB

### oci.sudo.is
## delegated to digitalocean.com
resource "digitalocean_domain" "oci-sudo-is" {
name = "oci.sudo.is"
ip_address = local.fsn_lb_ip
}
# but should be private ip
resource "digitalocean_record" "lon-matrix-bridges-g0" {
domain = digitalocean_domain.oci-sudo-is.name
type = "A"
name = "lon-matrix-bridges-g0"
value = oci_core_instance.lon-matrix-bridges-g0.public_ip
ttl = 60
}
# these are currently flat dotted dns records .lon.sudo.is
resource "cloudflare_record" "legacy-lon-matrix-bridges-g0" {
zone_id = cloudflare_zone.sudois.id
type = "A"
name = "lon-matrix-bridges-g0.lon"
value = oci_core_instance.lon-matrix-bridges-g0.public_ip
ttl = 60
}
# resource "cloudflare_record" "lon-kubeworker-g0" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = "lon-kubeworker-g0.lon"
# value = oci_core_instance.lon-kubeworker-g0.private_ip
# ttl = 60
# }
resource "cloudflare_record" "lon-mon-g0" {
zone_id = cloudflare_zone.sudois.id
type = "A"
name = "lon-mon-g0.lon"
value = oci_core_instance.lon-mon-g0.public_ip
ttl = 60
}
# resource "cloudflare_record" "lon-kubeworker-g1" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = "lon-kubeworker-g1.lon"
# value = oci_core_instance.lon-kubeworker-g1.private_ip
# ttl = 60
# }