github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/tools/provisioning/do/variables.tf (about)

     1  variable "client_ip" {
     2    description = "IP address of the client machine"
     3  }
     4  
     5  variable "app" {
     6    description = "Name of the application using the created droplet(s)."
     7    default     = "default"
     8  }
     9  
    10  variable "name" {
    11    description = "Name of the droplet(s)."
    12    default     = "test"
    13  }
    14  
    15  variable "num_hosts" {
    16    description = "Number of droplet(s)."
    17    default     = 1
    18  }
    19  
    20  variable "do_private_key_path" {
    21    description = "Digital Ocean SSH private key path"
    22    default     = "~/.ssh/id_rsa"
    23  }
    24  
    25  variable "do_public_key_id" {
    26    description = "Digital Ocean ID for your SSH public key"
    27  
    28    # You can retrieve it and set it as an environment variable this way:
    29  
    30    # $ export TF_VAR_do_public_key_id=$(curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/account/keys" | jq -c --arg key_name "$DIGITALOCEAN_SSH_KEY_NAME" '.ssh_keys | .[] | select(.name==$key_name) | .id')
    31  }
    32  
    33  variable "do_username" {
    34    description = "Digital Ocean SSH username"
    35    default     = "root"
    36  }
    37  
    38  variable "do_os" {
    39    description = "Digital Ocean OS"
    40    default     = "ubuntu-16-04-x64"
    41  }
    42  
    43  # curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/images?page=1&per_page=999999" | jq ".images | .[] | .slug" | grep -P "ubuntu|coreos|centos" | grep -v alpha | grep -v beta
    44  # "ubuntu-16-04-x32"
    45  # "ubuntu-16-04-x64"
    46  # "ubuntu-16-10-x32"
    47  # "ubuntu-16-10-x64"
    48  # "ubuntu-14-04-x32"
    49  # "ubuntu-14-04-x64"
    50  # "ubuntu-12-04-x64"
    51  # "ubuntu-12-04-x32"
    52  # "coreos-stable"
    53  # "centos-6-5-x32"
    54  # "centos-6-5-x64"
    55  # "centos-7-0-x64"
    56  # "centos-7-x64"
    57  # "centos-6-x64"
    58  # "centos-6-x32"
    59  # "centos-5-x64"
    60  # "centos-5-x32"
    61  
    62  # Digital Ocean datacenters
    63  # See also: 
    64  #   $ curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/regions"  | jq -c ".regions | .[] | .slug" | sort -u
    65  
    66  variable "do_dc_ams2" {
    67    description = "Digital Ocean Amsterdam Datacenter 2"
    68    default     = "ams2"
    69  }
    70  
    71  variable "do_dc_ams3" {
    72    description = "Digital Ocean Amsterdam Datacenter 3"
    73    default     = "ams3"
    74  }
    75  
    76  variable "do_dc_blr1" {
    77    description = "Digital Ocean Bangalore Datacenter 1"
    78    default     = "blr1"
    79  }
    80  
    81  variable "do_dc_fra1" {
    82    description = "Digital Ocean Frankfurt Datacenter 1"
    83    default     = "fra1"
    84  }
    85  
    86  variable "do_dc_lon1" {
    87    description = "Digital Ocean London Datacenter 1"
    88    default     = "lon1"
    89  }
    90  
    91  variable "do_dc_nyc1" {
    92    description = "Digital Ocean New York Datacenter 1"
    93    default     = "nyc1"
    94  }
    95  
    96  variable "do_dc_nyc2" {
    97    description = "Digital Ocean New York Datacenter 2"
    98    default     = "nyc2"
    99  }
   100  
   101  variable "do_dc_nyc3" {
   102    description = "Digital Ocean New York Datacenter 3"
   103    default     = "nyc3"
   104  }
   105  
   106  variable "do_dc_sfo1" {
   107    description = "Digital Ocean San Francisco Datacenter 1"
   108    default     = "sfo1"
   109  }
   110  
   111  variable "do_dc_sfo2" {
   112    description = "Digital Ocean San Francisco Datacenter 2"
   113    default     = "sfo2"
   114  }
   115  
   116  variable "do_dc_sgp1" {
   117    description = "Digital Ocean Singapore Datacenter 1"
   118    default     = "sgp1"
   119  }
   120  
   121  variable "do_dc_tor1" {
   122    description = "Digital Ocean Toronto Datacenter 1"
   123    default     = "tor1"
   124  }
   125  
   126  variable "do_dc" {
   127    description = "Digital Ocean's selected datacenter"
   128    default     = "lon1"
   129  }
   130  
   131  variable "do_size" {
   132    description = "Digital Ocean's selected machine size"
   133    default     = "4gb"
   134  }
   135  
   136  # Digital Ocean sizes
   137  
   138  
   139  # See also: 
   140  
   141  
   142  #   $ curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/sizes"  | jq -c ".sizes | .[] | .slug"
   143  
   144  
   145  # "512mb"
   146  
   147  
   148  # "1gb"
   149  
   150  
   151  # "2gb"
   152  
   153  
   154  # "4gb"
   155  
   156  
   157  # "8gb"
   158  
   159  
   160  # "16gb"
   161  
   162  
   163  # "m-16gb"
   164  
   165  
   166  # "32gb"
   167  
   168  
   169  # "m-32gb"
   170  
   171  
   172  # "48gb"
   173  
   174  
   175  # "m-64gb"
   176  
   177  
   178  # "64gb"
   179  
   180  
   181  # "m-128gb"
   182  
   183  
   184  # "m-224gb"
   185