Added VM configuration objects for all three nodes: - k3s_server_1_config: 6 cores, 12GB RAM, 100G disk - k3s_server_2_config: 6 cores, 12GB RAM, 100G disk - etcd_witness_config: 2 cores, 2GB RAM, 20G disk Removed undeclared 'management_bridge' variable that was causing warnings in terraform plan. This allows terraform plan to execute successfully in CI with the example configuration file.
49 lines
1.1 KiB
Text
49 lines
1.1 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!terraform"
|
|
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-2204-cloudinit"
|
|
storage_pool = "local-lvm"
|
|
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"
|
|
}
|