swap proxmox backend from s3 to gitlab http
All checks were successful
ci/woodpecker/push/demo-workflow Pipeline was successful

This commit is contained in:
2026-01-15 00:54:59 +02:00
parent bbf6e5d871
commit a68f3e0e70
2 changed files with 37 additions and 28 deletions

View File

@@ -1,14 +1,11 @@
terraform { terraform {
backend "s3" { backend "http" {
bucket = "terraform-state" # Name of the MinIO bucket address = var.http_address
key = "proxmox/terraform.tfstate" # Path to the state file in the bucket lock_address = var.http_lock_address
endpoint = var.minio_endpoint # MinIO API endpoint unlock_address = var.http_lock_address
access_key = var.minio_access_key # MinIO access key lock_method = "POST"
secret_key = var.minio_secret_key # MinIO secret key unlock_method = "DELETE"
region = "us-east-1" # Arbitrary region (MinIO ignores this) retry_wait_min = 5
skip_credentials_validation = true # Skip AWS-specific credential checks
skip_metadata_api_check = true # Skip AWS metadata API checks
skip_region_validation = true # Skip AWS region validation
use_path_style = true # Use path-style URLs[](http://<host>/<bucket>)
} }
} }

View File

@@ -1,16 +1,28 @@
# variables for minio backend configuration # variables for Terraform HTTP backend
variable "minio_access_key" { variable "http_username" {
description = "MinIO access key" description = "Username for HTTP backend"
type = string
sensitive = true
}
variable "http_password" {
description = "Password for HTTP backend"
type = string
sensitive = true
}
variable "http_address" {
description = "HTTP backend address"
type = string type = string
} }
variable "minio_secret_key" { variable "http_lock_address" {
description = "MinIO secret key" description = "HTTP backend lock address"
type = string type = string
} }
variable "minio_endpoint" { variable "http_unlock_address" {
description = "MinIO API endpoint" description = "HTTP backend unlock address"
type = string type = string
} }
@@ -52,15 +64,15 @@ variable "pm_ssh_private_key_path" {
variable "vms" { variable "vms" {
description = "List of VMs to create" description = "List of VMs to create"
type = list(object({ type = list(object({
name = string name = string
node_name = string node_name = string
vm_id = number vm_id = number
ip_address = string ip_address = string
dns_servers = list(string) dns_servers = list(string)
gateway = string gateway = string
cores = number cores = number
memory = number memory = number
disk_size = number disk_size = number
})) }))
} }
@@ -78,4 +90,4 @@ variable "vm_user_password" {
description = "Password for the VM user" description = "Password for the VM user"
type = string type = string
sensitive = true sensitive = true
} }