Initial infra setup: Terraform, Ansible, backup roles
This commit is contained in:
44
terraform/variables.tf
Normal file
44
terraform/variables.tf
Normal file
@@ -0,0 +1,44 @@
|
||||
variable "do_token" {
|
||||
description = "DigitalOcean API token"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "ssh_key_name" {
|
||||
description = "Name of the SSH key uploaded to DigitalOcean"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
description = "DigitalOcean region"
|
||||
type = string
|
||||
default = "nyc3"
|
||||
}
|
||||
|
||||
variable "droplet_size" {
|
||||
description = "Droplet size slug"
|
||||
type = string
|
||||
default = "s-1vcpu-2gb"
|
||||
}
|
||||
|
||||
variable "cloudflare_api_token" {
|
||||
description = "Cloudflare API token (needs Zone:DNS:Edit permission)"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "domain" {
|
||||
description = "Root domain managed in Cloudflare (e.g. example.com)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "admin_ip" {
|
||||
description = "Your public IP for SSH and git access (without /32)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "do_project_name" {
|
||||
description = "DigitalOcean project name to assign resources to"
|
||||
type = string
|
||||
default = "lunarfront-infra"
|
||||
}
|
||||
Reference in New Issue
Block a user