2024-08-20 19:03:23 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
digitalocean = {
|
|
|
|
source = "digitalocean/digitalocean"
|
|
|
|
version = "~> 2.0"
|
|
|
|
}
|
|
|
|
dns = {
|
|
|
|
source = "hashicorp/dns"
|
|
|
|
version = "~> 3.4.1"
|
|
|
|
}
|
|
|
|
proxmox = {
|
|
|
|
source = "bpg/proxmox"
|
|
|
|
version = "0.61.1"
|
|
|
|
}
|
|
|
|
tailscale = {
|
|
|
|
source = "tailscale/tailscale"
|
|
|
|
version = "0.16.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
required_version = "~> 1.7.3"
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "digitalocean" {
|
|
|
|
token = var.digitalocean_token
|
|
|
|
}
|
|
|
|
|
2024-08-23 20:03:47 +00:00
|
|
|
provider "tailscale" {
|
|
|
|
api_key = var.tailscale_apikey
|
|
|
|
}
|
2024-08-20 19:03:23 +00:00
|
|
|
|
|
|
|
provider "proxmox" {
|
|
|
|
# FIXME: Traefik/NGINX breaks this! 500 ERROR
|
|
|
|
endpoint = "https://178.63.49.225:8006/api2/json"
|
|
|
|
insecure = true
|
|
|
|
api_token = var.proxmox_token
|
|
|
|
ssh {
|
|
|
|
agent = true
|
|
|
|
username = "root"
|
|
|
|
}
|
|
|
|
}
|