Restore from Gitea ZIP snapshot (12.08.2026) after full instance reinstall
Git history was lost when the previous Gitea instance was wiped and reinstalled due to an unresolved corruption bug — this commit is the last known-good file content, exported before the reinstall. Prior commit history is not recoverable through this path.
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = "0.90.0"
|
||||
}
|
||||
}
|
||||
backend "http" {}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = var.proxmox_api_url
|
||||
api_token = "${var.proxmox_api_token_id}=${var.proxmox_api_token_secret}"
|
||||
insecure = true
|
||||
ssh {
|
||||
agent = false
|
||||
}
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "k8s_nodes" {
|
||||
for_each = var.vm_nodes
|
||||
node_name = "pve-main"
|
||||
|
||||
name = each.value.name
|
||||
vm_id = each.value.id
|
||||
|
||||
clone {
|
||||
vm_id = 9000
|
||||
}
|
||||
|
||||
cpu {
|
||||
cores = 2
|
||||
type = "x86-64-v2-AES"
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = 4096
|
||||
}
|
||||
|
||||
# ИСПРАВЛЕНО: Было network_interface, теперь network_device
|
||||
network_device {
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "local-lvm"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
}
|
||||
|
||||
initialization {
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "${each.value.ip}/24"
|
||||
gateway = "10.33.33.1"
|
||||
}
|
||||
}
|
||||
user_account {
|
||||
username = "ubuntu"
|
||||
keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEEuaCL9fPnGCH4hfxAzzS09aRaj6ptoG685p+oF5vTp semaphore-ansible-key"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user