Skip to content

Commit

Permalink
reduce usegalaxy.eu TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli committed Jul 8, 2024
1 parent fac482e commit 4494771
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_route53_record" "usegalaxy-eu" {
zone_id = var.zone_usegalaxy_eu
name = "usegalaxy.eu"
type = "A"
ttl = "7200"
ttl = "300"
records = ["${var.sn06}"]
}

Expand Down Expand Up @@ -161,42 +161,42 @@ resource "aws_route53_record" "build-usegalaxy" {
## ZFS server #1 (all flash)
resource "aws_route53_record" "ssds1-galaxyproject" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = "zfs0f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.239"]
zone_id = var.zone_galaxyproject_eu
name = "zfs0f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.239"]
}

## ZFS server #2 (spinning disks w/ flash cache)
resource "aws_route53_record" "zfs1-galaxyproject" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = "zfs1.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.238"]
zone_id = var.zone_galaxyproject_eu
name = "zfs1.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.238"]
}

## ZFS server #3 (all flash)
resource "aws_route53_record" "zfs2f-galaxyproject" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = "zfs2f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.236"]
zone_id = var.zone_galaxyproject_eu
name = "zfs2f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.236"]
#comment
}

## ZFS server #4 (all flash)
resource "aws_route53_record" "zfs3f-galaxyproject" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = "zfs3f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.235"]
zone_id = var.zone_galaxyproject_eu
name = "zfs3f.galaxyproject.eu"
type = "A"
ttl = "7200"
records = ["10.5.68.235"]
}

## Previous central-manager
Expand Down Expand Up @@ -269,43 +269,43 @@ resource "aws_route53_record" "it-subdomain-main" {
# SPF and DMARC records
resource "aws_route53_record" "usegalaxy_eu_dmarc_txt" {
allow_overwrite = true
zone_id = var.zone_usegalaxy_eu
name = "_dmarc.usegalaxy.eu"
type = "TXT"
ttl = "300"
zone_id = var.zone_usegalaxy_eu
name = "_dmarc.usegalaxy.eu"
type = "TXT"
ttl = "300"
records = [
"v=DMARC1;p=reject;pct=100;ruf=mailto:[email protected];aspf=r"
]
}

resource "aws_route53_record" "usegalaxy_eu_spf_txt" {
allow_overwrite = true
zone_id = var.zone_usegalaxy_eu
name = ""
type = "TXT"
ttl = "300"
zone_id = var.zone_usegalaxy_eu
name = ""
type = "TXT"
ttl = "300"
records = [
"v=spf1 include:mailgun.org -all"
]
}

resource "aws_route53_record" "galaxyproject_eu_dmarc_txt" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = "_dmarc.galaxyproject.eu"
type = "TXT"
ttl = "300"
zone_id = var.zone_galaxyproject_eu
name = "_dmarc.galaxyproject.eu"
type = "TXT"
ttl = "300"
records = [
"v=DMARC1;p=reject;pct=100;ruf=mailto:[email protected];aspf=r"
]
}

resource "aws_route53_record" "galaxyproject_eu_spf_txt" {
allow_overwrite = true
zone_id = var.zone_galaxyproject_eu
name = ""
type = "TXT"
ttl = "300"
zone_id = var.zone_galaxyproject_eu
name = ""
type = "TXT"
ttl = "300"
records = [
"v=spf1 -all"
]
Expand Down

0 comments on commit 4494771

Please sign in to comment.