swap proxmox backend from s3 to gitlab http
All checks were successful
ci/woodpecker/push/demo-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/demo-workflow Pipeline was successful
This commit is contained in:
@@ -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>)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user