Homelab/terraform/pve1/variables.tf
Tellsanguis 3b5f1fc2d2
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 17s
CD - Deploy Infrastructure / Deploy on pve1 (push) Successful in 2m12s
CD - Deploy Infrastructure / Deploy on pve2 (push) Successful in 2m11s
CD - Deploy Infrastructure / Deploy on pve3 (push) Successful in 2m28s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Successful in 5m3s
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
feat: Configuration stockage local et token K3S partagé
- Passage stockage local-nvme pour acemagician et elitedesk (40G)
- Token K3S partagé via cloud-init pour cluster HA
- Configuration FluxCD avec GitRepository Forgejo
- Déploiement Hello World via FluxCD
- Manifestes Kubernetes pour application demo
2025-12-09 11:55:19 +01:00

96 lines
2 KiB
HCL

variable "proxmox_api_url" {
description = "Proxmox API URL"
type = string
default = "https://192.168.100.10:8006/api2/json"
}
variable "proxmox_token_id" {
description = "Proxmox API Token ID"
type = string
sensitive = true
}
variable "proxmox_token_secret" {
description = "Proxmox API Token Secret"
type = string
sensitive = true
}
variable "proxmox_tls_insecure" {
description = "Skip TLS verification for Proxmox API"
type = bool
default = true
}
variable "ssh_public_key" {
description = "SSH public key for admin access"
type = string
}
variable "forgejo_token" {
description = "Forgejo token for ansible-pull authentication"
type = string
sensitive = true
}
variable "forgejo_repo_url" {
description = "Forgejo repository URL (without credentials)"
type = string
}
variable "k3s_version" {
description = "K3s version to install"
type = string
}
variable "ubuntu_template" {
description = "Ubuntu cloud-init template name"
type = string
}
variable "storage_pool" {
description = "Proxmox storage pool for VM disks"
type = string
}
variable "k3s_server_1_storage_pool" {
description = "Storage pool for k3s-server-1 disk (local-nvme for acemagician)"
type = string
default = "local-nvme"
}
variable "snippets_storage" {
description = "Proxmox storage for cloud-init snippets"
type = string
}
variable "k3s_network_bridge" {
description = "SDN bridge for K3s VMs"
type = string
}
variable "k3s_gateway" {
description = "Gateway for K3s network"
type = string
}
variable "k3s_dns" {
description = "DNS servers for K3s network"
type = list(string)
}
variable "k3s_server_1_config" {
description = "K3s server-1 VM configuration"
type = object({
ip = string
cores = number
memory = number
disk_size = string
})
}
variable "k3s_token" {
description = "K3s cluster token"
type = string
sensitive = true
}