Some checks failed
CD - Deploy Infrastructure / ci (push) Waiting to run
CD - Deploy Infrastructure / Deploy on pve1 (push) Blocked by required conditions
CD - Deploy Infrastructure / Deploy on pve2 (push) Blocked by required conditions
CD - Deploy Infrastructure / Deploy on pve3 (push) Blocked by required conditions
CD - Deploy Infrastructure / Validate K3s Cluster (push) Blocked by required conditions
CD - Deploy Infrastructure / Deployment Notification (push) Blocked by required conditions
CI - Validation / Terraform Validation (push) Successful in 1m6s
CI - Validation / Ansible Validation (push) Has been cancelled
CI - Validation / Kubernetes Validation (push) Has been cancelled
CI - Validation / Security Scan (push) Has been cancelled
The example file had root@pam!terraform hardcoded, which was overriding the secret value. Updated to match the actual token name.
49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
# Copy this file to terraform.tfvars and fill in your values
|
|
|
|
# Proxmox Configuration
|
|
proxmox_api_url = "https://192.168.100.10:8006/api2/json"
|
|
proxmox_token_id = "root@pam!opentofu"
|
|
proxmox_token_secret = "your-proxmox-token-secret"
|
|
proxmox_tls_insecure = true
|
|
|
|
# SSH Access
|
|
ssh_public_key = "ssh-ed25519 AAAAC3... your-email@example.com"
|
|
|
|
# Forgejo Configuration
|
|
forgejo_token = "your-forgejo-token"
|
|
forgejo_repo_url = "ssh://git@forgejo.tellserv.fr:222/Tellsanguis/infra.git"
|
|
|
|
# K3s Version
|
|
k3s_version = "v1.28.5+k3s1"
|
|
|
|
# Template and Storage
|
|
ubuntu_template = "ubuntu-2404-cloudinit"
|
|
storage_pool = "linstor_storage"
|
|
snippets_storage = "local"
|
|
|
|
# Network
|
|
k3s_network_bridge = "k3s"
|
|
k3s_gateway = "10.100.20.1"
|
|
k3s_dns = ["10.100.20.1", "1.1.1.1"]
|
|
|
|
# VM Configurations
|
|
k3s_server_1_config = {
|
|
ip = "10.100.20.10/24"
|
|
cores = 6
|
|
memory = 12288
|
|
disk_size = "100G"
|
|
}
|
|
|
|
k3s_server_2_config = {
|
|
ip = "10.100.20.20/24"
|
|
cores = 6
|
|
memory = 12288
|
|
disk_size = "100G"
|
|
}
|
|
|
|
etcd_witness_config = {
|
|
ip = "10.100.20.30/24"
|
|
cores = 2
|
|
memory = 2048
|
|
disk_size = "20G"
|
|
}
|