/ variables.tf
variables.tf
1 /* DNS ------------------------------------------*/ 2 3 variable "cf_zone_id" { 4 description = "ID of CloudFlare zone for host record." 5 type = string 6 default = "fd48f427e99bbe1b52105351260690d1" 7 } 8 9 variable "domain" { 10 description = "DNS Domain to update" 11 type = string 12 default = "status.im" 13 } 14 15 /* SCALING --------------------------------------*/ 16 17 variable "zone" { 18 description = "Region in which the host reside." 19 type = string 20 default = "fr-par-2" 21 } 22 23 variable "provider_name" { 24 description = "Short name of provider being used." 25 type = string 26 default = "sw" 27 } 28 29 variable "type" { 30 description = "Type of Scaleway instance to create." 31 type = string 32 default = "GP-BM1-S" 33 } 34 35 variable "host_count" { 36 description = "Number of Scaleway instances to create." 37 type = number 38 } 39 40 /* IMAGE ----------------------------------------*/ 41 42 /* Acquired via API call: 43 * https://developers.scaleway.com/en/products/baremetal/api/#get-3e317d 44 * The token needs to be passed via X-Auth-Token header. */ 45 variable "os_id" { 46 description = "ID of OS image used for instance." 47 type = string 48 default = "03b7f4ba-a6a1-4305-984e-b54fafbf1681" 49 } 50 51 variable "ssh_user" { 52 description = "User used for SSH access." 53 type = string 54 default = "root" 55 } 56 57 variable "ssh_key_id" { 58 description = "Name of SSH key added to Scaleway." 59 type = string 60 default = "ee3268e1-47bf-42ed-a89e-fefa6d71828b" 61 } 62 63 /* GENERAL --------------------------------------*/ 64 65 variable "name" { 66 description = "Prefix of hostname before index." 67 type = string 68 default = "node" 69 } 70 71 variable "group" { 72 description = "Name of Ansible group to add hosts to." 73 type = string 74 } 75 76 variable "env" { 77 description = "Environment for these hosts, affects DNS entries." 78 type = string 79 } 80 81 variable "stage" { 82 description = "Name of stage, like prod, dev, or staging." 83 type = string 84 default = "" 85 }