lxc with drone-runner on proxmox via opentofu and ansible

This commit is contained in:
2026-02-23 23:55:29 +01:00
commit b29c73c404
10 changed files with 254 additions and 0 deletions

44
tofu/variables.tf Normal file
View File

@@ -0,0 +1,44 @@
variable "proxmox_endpoint" {
description = "Proxmox API URL"
type = string
}
variable "proxmox_password" {
description = "Password for root@pam on Proxmox"
type = string
sensitive = true
}
variable "node_name" {
description = "Proxmox node name"
type = string
default = "pve"
}
variable "drone_runner_id" {
description = "VMID for the Drone Runner LXC"
type = number
default = 200
}
variable "drone_runner_ip" {
description = "Static IP in CIDR notation"
type = string
}
variable "gateway" {
description = "Network gateway IP"
type = string
}
variable "ssh_public_key_path" {
description = "Path to SSH public key for LXC root access"
type = string
default = "~/.ssh/id_ed25519.pub"
}
variable "drone_runner_password" {
description = "Root password inside the LXC container"
type = string
sensitive = true
}