Skip to content

Commit

Permalink
Merge pull request #199 from usegalaxy-eu/switch-to-traefik
Browse files Browse the repository at this point in the history
⚠️ Traefik switch
  • Loading branch information
mira-miracoli authored Jul 17, 2024
2 parents b1b56c6 + d3344fe commit b91f7ac
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ variable "sn06" {
default = "132.230.223.239"
}

variable "traefik" {
default = "132.230.103.37"
}

resource "aws_route53_record" "usegalaxy-eu" {
allow_overwrite = true
zone_id = var.zone_usegalaxy_eu
name = "usegalaxy.eu"
type = "A"
ttl = "7200"
records = ["${var.sn06}"]
ttl = "300"
records = ["${var.traefik}"]
}

resource "aws_route53_record" "galaxyproject-eu" {
Expand Down Expand Up @@ -161,42 +165,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 +273,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 b91f7ac

Please sign in to comment.