github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/terraform/variables.tf (about)

     1  variable "name" {
     2    description = "Used to name various infrastructure components"
     3    default     = "nomad-e2e"
     4  }
     5  
     6  variable "region" {
     7    description = "The AWS region to deploy to."
     8    default     = "us-east-1"
     9  }
    10  
    11  variable "availability_zone" {
    12    description = "The AWS availability zone to deploy to."
    13    default     = "us-east-1b"
    14  }
    15  
    16  variable "instance_type" {
    17    description = "The AWS instance type to use for both clients and servers."
    18    default     = "t2.medium"
    19  }
    20  
    21  variable "server_count" {
    22    description = "The number of servers to provision."
    23    default     = "3"
    24  }
    25  
    26  variable "client_count_ubuntu_jammy_amd64" {
    27    description = "The number of Ubuntu clients to provision."
    28    default     = "4"
    29  }
    30  
    31  variable "client_count_windows_2016_amd64" {
    32    description = "The number of windows 2016 clients to provision."
    33    default     = "1"
    34  }
    35  
    36  variable "restrict_ingress_cidrblock" {
    37    description = "Restrict ingress traffic to cluster to invoker ip address"
    38    type        = bool
    39    default     = true
    40  }
    41  
    42  # ----------------------------------------
    43  # The specific version of Nomad deployed will default to whichever one of
    44  # nomad_sha, nomad_version, or nomad_local_binary is set
    45  
    46  variable "nomad_local_binary" {
    47    description = "The path to a local binary to provision"
    48    default     = ""
    49  }
    50  
    51  variable "nomad_license" {
    52    type        = string
    53    description = "If nomad_license is set, deploy a license to override the temporary license"
    54    default     = ""
    55  }
    56  
    57  variable "volumes" {
    58    type        = bool
    59    description = "Include external EFS volumes (for CSI)"
    60    default     = true
    61  }
    62  
    63  variable "hcp_consul_cluster_id" {
    64    description = "The ID of the HCP Consul cluster"
    65    type        = string
    66    default     = "nomad-e2e-shared-hcp-consul"
    67  }
    68  
    69  variable "hcp_vault_cluster_id" {
    70    description = "The ID of the HCP Vault cluster"
    71    type        = string
    72    default     = "nomad-e2e-shared-hcp-vault"
    73  }
    74  
    75  variable "hcp_vault_namespace" {
    76    description = "The namespace where the HCP Vault cluster policy works"
    77    type        = string
    78    default     = "admin"
    79  }
    80  
    81  # ----------------------------------------
    82  # If you want to deploy multiple versions you can use these variables to
    83  # provide a list of builds to override the values of nomad_sha, nomad_version,
    84  # or nomad_local_binary. Most of the time you can ignore these variables!
    85  
    86  variable "nomad_local_binary_server" {
    87    description = "A list of nomad local binary paths to deploy to servers, to override nomad_local_binary"
    88    type        = list(string)
    89    default     = []
    90  }
    91  
    92  variable "nomad_local_binary_client_ubuntu_jammy_amd64" {
    93    description = "A list of nomad local binary paths to deploy to Ubuntu Jammy clients, to override nomad_local_binary"
    94    type        = list(string)
    95    default     = []
    96  }
    97  
    98  variable "nomad_local_binary_client_windows_2016_amd64" {
    99    description = "A list of nomad local binary paths to deploy to Windows 2016 clients, to override nomad_local_binary"
   100    type        = list(string)
   101    default     = []
   102  }