mirror of
https://github.com/tolerryan/NewWatari.git
synced 2026-10-12 09:07:42 +00:00
87 lines
1.9 KiB
HCL
87 lines
1.9 KiB
HCL
terraform {
|
|
backend "s3" {
|
|
bucket = "terraform"
|
|
key = "terraform.tfstate"
|
|
region = "us-east-1"
|
|
#encrypt = true
|
|
use_lockfile = true # Use S3 native locking (Terraform 1.9.0+)
|
|
skip_region_validation = true
|
|
skip_credentials_validation = true
|
|
skip_requesting_account_id = true
|
|
use_path_style = true
|
|
skip_s3_checksum = true
|
|
skip_metadata_api_check = true
|
|
endpoints = {
|
|
s3 = "http://misamisa.duckdns.org:9000"
|
|
}
|
|
}
|
|
required_providers {
|
|
proxmox = {
|
|
source = "bpg/proxmox"
|
|
version = "0.97.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "virtual_environment_endpoint" {
|
|
type = string
|
|
description = "The endpoint for the Proxmox Virtual Environment API (example: https://host:port)"
|
|
}
|
|
|
|
variable "virtual_environment_password" {
|
|
type = string
|
|
description = "The password for the Proxmox Virtual Environment API"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "virtual_environment_username" {
|
|
type = string
|
|
description = "The username and realm for the Proxmox Virtual Environment API (example: root@pam)"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "netbird_token" {
|
|
type = string
|
|
description = "Token used to join new VMs to netbird"
|
|
sensitive = true
|
|
}
|
|
|
|
provider "proxmox" {
|
|
endpoint = var.virtual_environment_endpoint
|
|
username = var.virtual_environment_username
|
|
password = var.virtual_environment_password
|
|
insecure = true
|
|
ssh {
|
|
agent = true
|
|
}
|
|
}
|
|
|
|
module "downloader" {
|
|
source = "./lxc/downloader"
|
|
# Pass input variables as needed
|
|
}
|
|
|
|
module "wikmd" {
|
|
source = "./lxc/wikmd"
|
|
# Pass input variables as needed
|
|
}
|
|
|
|
module "tor" {
|
|
source = "./lxc/tor"
|
|
# Pass input variables as needed
|
|
}
|
|
|
|
module "owncloud" {
|
|
source = "./lxc/owncloud"
|
|
# Pass input variables as needed
|
|
}
|
|
|
|
module "uptimekuma" {
|
|
source = "./lxc/uptimekuma"
|
|
# Pass input variables as needed
|
|
}
|
|
|
|
module "n8n" {
|
|
source = "./lxc/n8n"
|
|
# Pass input variables as needed
|
|
} |