65 lines
1.5 KiB
HCL
65 lines
1.5 KiB
HCL
/* CONFIG ----------------------------------------*/
|
|
|
|
variable "ssh_keys" {
|
|
description = "Names of ssh public keys to add to created hosts"
|
|
type = list(string)
|
|
# ssh key IDs acquired using doctl
|
|
default = ["16822693", "18813432", "18813461", "19525749", "20671731", "20686611"]
|
|
}
|
|
|
|
variable "env" {
|
|
description = "Environment for these hosts, affects DNS entries."
|
|
type = string
|
|
default = "swarm"
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "DNS Domain to update"
|
|
type = string
|
|
default = "statusim.net"
|
|
}
|
|
|
|
variable "ssh_user" {
|
|
description = "User used to log in to instance"
|
|
type = string
|
|
default = "root"
|
|
}
|
|
|
|
/* PROVIDERS ------------------------------------*/
|
|
|
|
variable "cloudflare_token" {
|
|
description = "Token for interacting with Cloudflare API."
|
|
type = string
|
|
}
|
|
|
|
variable "digitalocean_token" {
|
|
description = "Token for interacting with DigitalOcean API."
|
|
type = string
|
|
}
|
|
|
|
variable "cloudflare_email" {
|
|
description = "Email address of Cloudflare account."
|
|
type = string
|
|
}
|
|
|
|
variable "cloudflare_org_id" {
|
|
description = "ID of the CloudFlare organization."
|
|
type = string
|
|
}
|
|
|
|
variable "alicloud_access_key" {
|
|
description = "Alibaba Cloud API access key."
|
|
type = string
|
|
}
|
|
|
|
variable "alicloud_secret_key" {
|
|
description = "Alibaba Cloud API secret key."
|
|
type = string
|
|
}
|
|
|
|
variable "alicloud_region" {
|
|
description = "Alibaba Cloud hosting region."
|
|
type = string
|
|
default = "cn-hongkong"
|
|
}
|