-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: manage DigitalOcean service DNS records (#161)
* feat: add a DNS zone with records for doks-public, archives(ipv4) and archives(ipv6) Signed-off-by: Damien Duportal <[email protected]> * fixup: change puppet hostname for archives.jenkins.io to map to DNS Signed-off-by: Damien Duportal <[email protected]> --------- Signed-off-by: Damien Duportal <[email protected]>
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Child DNS Zone delegated from Azure | ||
# https://docs.digitalocean.com/products/networking/dns/getting-started/dns-registrars/ | ||
resource "digitalocean_domain" "do_jenkins_io" { | ||
name = "do.jenkins.io" | ||
} | ||
|
||
resource "digitalocean_record" "repo_ipv4" { | ||
domain = digitalocean_domain.do_jenkins_io.id | ||
type = "A" | ||
name = "repo" | ||
value = data.digitalocean_loadbalancer.doks_public.ip | ||
} | ||
|
||
resource "digitalocean_record" "archives_ipv4" { | ||
domain = digitalocean_domain.do_jenkins_io.id | ||
type = "A" | ||
name = "archives" | ||
value = digitalocean_droplet.archives_jenkins_io.ipv4_address | ||
} | ||
|
||
resource "digitalocean_record" "archives_ipv6" { | ||
domain = digitalocean_domain.do_jenkins_io.id | ||
type = "AAAA" | ||
name = "archives" | ||
value = digitalocean_droplet.archives_jenkins_io.ipv6_address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters