Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored and Scott Winkler committed Feb 9, 2021
1 parent bde9e3e commit 104d09f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ data "nomad_regions" "current" {
}

locals {
aws_region = sort(data.nomad_regions.current.regions)[1]
aws_region = sort(data.nomad_regions.current.regions)[1]
azure_region = sort(data.nomad_regions.current.regions)[0]
}

resource "nomad_job" "aws_fabio" {
jobspec = templatefile("${path.module}/jobs/aws_fabio.hcl",{region = local.aws_region})
jobspec = templatefile("${path.module}/jobs/aws_fabio.hcl", { region = local.aws_region })
provider = nomad.aws
}

resource "nomad_job" "azure_fabio" {
jobspec = templatefile("${path.module}/jobs/azure_fabio.hcl",{region = local.azure_region})
jobspec = templatefile("${path.module}/jobs/azure_fabio.hcl", { region = local.azure_region })
provider = nomad.azure
}

resource "nomad_job" "azure_mongo" {
jobspec = templatefile("${path.module}/jobs/mongo.hcl",{region = local.azure_region})
jobspec = templatefile("${path.module}/jobs/mongo.hcl", { region = local.azure_region })
provider = nomad.azure
}

resource "nomad_job" "aws_browserquest" {
jobspec = templatefile("${path.module}/jobs/browserquest.hcl",{region=local.aws_region,address=replace(var.fabio_db,"tcp://","")})
jobspec = templatefile("${path.module}/jobs/browserquest.hcl", { region = local.aws_region, address = replace(var.fabio_db, "tcp://", "") })
provider = nomad.aws
}

0 comments on commit 104d09f

Please sign in to comment.