Initial infra setup: Terraform, Ansible, backup roles

This commit is contained in:
Ryan Moon
2026-03-31 08:11:12 -05:00
commit d6ff4746d0
31 changed files with 792 additions and 0 deletions

44
terraform/variables.tf Normal file
View 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"
}