github.com/hernad/nomad@v1.6.112/e2e/terraform/variables.tf (about)

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