diff --git a/README.md b/README.md index cf74dda..a4ea0b3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ This sets up: * Nomad Client load balancer for an ingress proxy admin UI * Related Subnets & Security groups +Each node is set up as either a Nomad Server or Nomad Client with basic dependencies (i.e. curl, apt-transport-https, gnupg-agent, jq), Docker, and the Nomad binary. Nomad and Docker are both configured to launch as systemd services. + +See (the startup script template)[(./templates/startup.sh.tpl)] and (nomad config setup template)[(./templates/nomad.sh.tpl)] for details. + ### Dependencies - Terraform 12+ diff --git a/aws_cluster.tf b/aws_cluster.tf index c24c316..5a60fb5 100644 --- a/aws_cluster.tf +++ b/aws_cluster.tf @@ -4,8 +4,6 @@ locals { base_config_values = { datacenter = var.region region = var.region - authoritative_region = var.authoritative_region - replication_token = var.replication_token retry_provider = var.retry_join.provider retry_tag_key = var.retry_join.tag_key retry_tag_value = "${var.retry_join.tag_value_prefix}-${var.cluster_name}" diff --git a/variables.tf b/variables.tf index f24c013..ba2413f 100644 --- a/variables.tf +++ b/variables.tf @@ -12,13 +12,6 @@ variable "region" { default = "us-east-1" } -/* Not used unless multi-region Nomad is set up */ - -variable "replication_token" { - type = string - default = "" -} - variable "public_availability_zones" { type = list(string) default = ["us-east-1a", "us-east-1b"] @@ -114,6 +107,7 @@ variable "desired_servers" { Three is recommended for most production setups. One is viable but does not allow for a high availibility raft cluster. */ + variable "max_servers" { type = number default = 3