github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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-1a"
    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_bionic_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 "aws_assume_role_arn" {
    37    description = "The AWS IAM role to assume (not used by human users)"
    38    default     = ""
    39  }
    40  
    41  variable "aws_assume_role_session_name" {
    42    description = "The AWS IAM session name to assume (not used by human users)"
    43    default     = ""
    44  }
    45  
    46  variable "aws_assume_role_external_id" {
    47    description = "The AWS IAM external ID to assume (not used by human users)"
    48    default     = ""
    49  }
    50  
    51  variable "profile" {
    52    description = "A default Nomad/Consul/Vault configuration profile"
    53    type        = string
    54    default     = ""
    55  }
    56  
    57  # ----------------------------------------
    58  # The specific version of Nomad deployed will default to whichever one of
    59  # nomad_sha, nomad_version, or nomad_local_binary is set
    60  
    61  variable "nomad_sha" {
    62    description = "The sha of Nomad to provision"
    63    default     = ""
    64  }
    65  
    66  variable "nomad_version" {
    67    description = "The release version of Nomad to provision"
    68    default     = ""
    69  }
    70  
    71  variable "nomad_local_binary" {
    72    description = "The path to a local binary to provision"
    73    default     = ""
    74  }
    75  
    76  variable "nomad_enterprise" {
    77    type        = bool
    78    description = "If nomad_sha is used, deploy Nomad Enterprise"
    79    default     = false
    80  }
    81  
    82  variable "nomad_acls" {
    83    type        = bool
    84    description = "Bootstrap ACLs"
    85    default     = false
    86  }
    87  
    88  variable "vault" {
    89    type        = bool
    90    description = "Bootstrap Vault"
    91    default     = false
    92  }
    93  
    94  variable "volumes" {
    95    type        = bool
    96    description = "Include external EBS and EFS volumes (for CSI)"
    97    default     = false
    98  }
    99  
   100  # ----------------------------------------
   101  # If you want to deploy multiple versions you can use these variables to
   102  # provide a list of builds to override the values of nomad_sha, nomad_version,
   103  # or nomad_local_binary. Most of the time you can ignore these variables!
   104  
   105  variable "nomad_version_server" {
   106    description = "A list of Nomad versions to deploy to servers, to override nomad_version"
   107    type        = list(string)
   108    default     = []
   109  }
   110  
   111  variable "nomad_sha_server" {
   112    description = "A list of Nomad SHAs to deploy to servers, to override nomad_sha"
   113    type        = list(string)
   114    default     = []
   115  }
   116  
   117  variable "nomad_local_binary_server" {
   118    description = "A list of Nomad SHAs to deploy to servers, to override nomad_sha"
   119    type        = list(string)
   120    default     = []
   121  }
   122  
   123  variable "nomad_version_client_ubuntu_bionic_amd64" {
   124    description = "A list of Nomad versions to deploy to Ubuntu Bionic clients, to override nomad_version"
   125    type        = list(string)
   126    default     = []
   127  }
   128  
   129  variable "nomad_sha_client_ubuntu_bionic_amd64" {
   130    description = "A list of Nomad SHAs to deploy to Ubuntu Bionic clients, to override nomad_sha"
   131    type        = list(string)
   132    default     = []
   133  }
   134  
   135  variable "nomad_local_binary_client_ubuntu_bionic_amd64" {
   136    description = "A list of Nomad SHAs to deploy to Ubuntu Bionic clients, to override nomad_sha"
   137    type        = list(string)
   138    default     = []
   139  }
   140  
   141  variable "nomad_version_client_windows_2016_amd64" {
   142    description = "A list of Nomad versions to deploy to Windows 2016 clients, to override nomad_version"
   143    type        = list(string)
   144    default     = []
   145  }
   146  
   147  variable "nomad_sha_client_windows_2016_amd64" {
   148    description = "A list of Nomad SHAs to deploy to Windows 2016 clients, to override nomad_sha"
   149    type        = list(string)
   150    default     = []
   151  }
   152  
   153  variable "nomad_local_binary_client_windows_2016_amd64" {
   154    description = "A list of Nomad SHAs to deploy to Windows 2016 clients, to override nomad_sha"
   155    type        = list(string)
   156    default     = []
   157  }