-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: remove Doormat and TFC use for easier public experience. (#130)
The changes remove internal customizations used by Nomad Eng. to run nomad-bench clusters. This allows the community to run the infra stack and jobs. High Level Points: - removed use of Terraform Cloud - updated Ansible TF module to support arm64 - clarified and added more detail to readme
- Loading branch information
Showing
25 changed files
with
262 additions
and
391 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
data "terraform_remote_state" "core" { | ||
backend = "remote" | ||
backend = "local" | ||
|
||
config = { | ||
organization = "nomad-eng" | ||
workspaces = { | ||
name = "nomad-bench-core" | ||
} | ||
path = "../core/terraform.tfstate" | ||
} | ||
} |
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,7 @@ | ||
output "influxdb_org_name" { | ||
value = local.influxdb_org_name | ||
} | ||
|
||
output "influxdb_address" { | ||
value = "https://${data.terraform_remote_state.core.outputs.lb_public_ip}:8086" | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,37 +1,13 @@ | ||
terraform { | ||
cloud { | ||
organization = "nomad-eng" | ||
|
||
workspaces { | ||
name = "nomad-bench-core-nomad" | ||
} | ||
} | ||
|
||
required_providers { | ||
doormat = { | ||
source = "doormat.hashicorp.services/hashicorp-security/doormat" | ||
version = "~> 0.0.2" | ||
} | ||
backend "local" { | ||
path = "terraform.tfstate" | ||
} | ||
} | ||
|
||
provider "doormat" {} | ||
|
||
provider "aws" { | ||
region = "eu-west-2" | ||
|
||
access_key = data.doormat_aws_credentials.creds.access_key | ||
secret_key = data.doormat_aws_credentials.creds.secret_key | ||
token = data.doormat_aws_credentials.creds.token | ||
} | ||
|
||
provider "nomad" { | ||
address = "https://${data.terraform_remote_state.core.outputs.lb_private_ip}" | ||
secret_id = var.nomad_token | ||
ca_pem = data.terraform_remote_state.core.outputs.ca_cert | ||
} | ||
|
||
data "doormat_aws_credentials" "creds" { | ||
provider = doormat | ||
role_arn = "arn:aws:iam::999225027745:role/tfc-doormat-nomad-bench-core-nomad" | ||
address = "https://${data.terraform_remote_state.core.outputs.lb_public_ip}" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.