2021-05-18 06:07:26 +00:00
|
|
|
/* SCALING --------------------------------------*/
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
description = "Region in which the host reside."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
variable "prefix" {
|
2021-05-18 06:07:26 +00:00
|
|
|
description = "Short name of provider being used."
|
|
|
|
type = string
|
2022-02-25 13:19:08 +00:00
|
|
|
default = "ms"
|
2021-05-18 06:07:26 +00:00
|
|
|
}
|
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
/* STATIC ---------------------------------------*/
|
2021-05-18 06:07:26 +00:00
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
variable "ips" {
|
|
|
|
description = "Static list of IPs used by the hosts."
|
|
|
|
type = list(string)
|
2021-05-18 06:07:26 +00:00
|
|
|
}
|
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
/* GENERAL --------------------------------------*/
|
2021-05-18 06:07:26 +00:00
|
|
|
|
|
|
|
variable "name" {
|
2022-02-25 13:19:08 +00:00
|
|
|
description = "Prefix of hostname before index."
|
|
|
|
type = string
|
|
|
|
default = "node"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "group" {
|
|
|
|
description = "Name of Ansible group to add hosts to."
|
2021-05-18 06:07:26 +00:00
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "env" {
|
|
|
|
description = "Environment for these hosts, affects DNS entries."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "stage" {
|
|
|
|
description = "Name of stage, like prod, dev, or staging."
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "domain" {
|
|
|
|
description = "DNS Domain to update"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-02-25 13:19:08 +00:00
|
|
|
variable "zone_id" {
|
2021-05-18 06:07:26 +00:00
|
|
|
description = "ID of CloudFlare zone for host record."
|
2022-02-25 13:19:08 +00:00
|
|
|
/* We default to: statusim.net */
|
2021-05-18 06:07:26 +00:00
|
|
|
default = "14660d10344c9898521c4ba49789f563"
|
|
|
|
}
|
2022-02-25 13:19:08 +00:00
|
|
|
|
|
|
|
variable "shell_type" {
|
|
|
|
description = "Type of shell used by Ansible."
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "become" {
|
|
|
|
description = "Whether Ansible should become a user."
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
}
|