feat: remove ansible/
Some checks are pending
checks / pre-commit (push) Waiting to run
checks / k8s (push) Waiting to run
checks / tflint (push) Waiting to run
OpenTofu deployments / authentik (push) Waiting to run
OpenTofu deployments / adguard (push) Waiting to run

This commit is contained in:
cătălin 2025-06-06 14:25:14 +02:00
commit 23ca6eb433
No known key found for this signature in database
29 changed files with 21 additions and 568 deletions

View file

@ -1,23 +0,0 @@
# This file is maintained automatically by "tofu init".
# Manual edits may be lost in future updates.
provider "registry.opentofu.org/thegameprofi/proxmox" {
version = "2.10.0"
constraints = "2.10.0"
hashes = [
"h1:0wJlZKYgmnyXJ4AGKfML5m0/bhRUXty3vn4mSEYhFDM=",
"h1:2fmj6FkuQ8CyWdxJ83s87GJhRHiQFnzlSYSlA2q7pXg=",
"h1:5FQbfjTDMO4FCMXAQ5S+2CdVHw1gJoOicQRLVTCfrDI=",
"h1:60DcgYwyBroh3oUsdsZU/Z03LfEIidq2lTYKbhZDibU=",
"h1:6hrWJT18l4jfWrzO8GweRA1bIdzY8dDUkzB7+GW0Zgs=",
"h1:8bQZLEyLJqYnLnZC0zopbPSJVYXwQIb+G3nQ9Tc9bMU=",
"h1:DArex0up+F+sN3arAKanOSVc70b9kyTeTkuy6Abkor8=",
"h1:WUh8KlPtUdI+O7FJz6/d3BC+77tSBYjlNCxKjIGX7Kg=",
"h1:atdwdBFAPjyz7ICxoeMBrUn7tllqjJyIIClO5Mv3dlw=",
"h1:mnIwCGDAZ9O/UiQEXGWKXUeA6H1Tt/AkII/MjHw1SMg=",
"h1:sW+6tq318P9g0P+BwqEM74AHsJ6CmN+s6NgAJJxZk/Y=",
"h1:tWdlbcPuby+thPgC07FCBbIzzQAOn3XSvRibuHcdK04=",
"h1:yHr19pmBvjRCSbyWmNd3Y4iI7mCjeDgzC622q5kSSKE=",
"h1:zbDNS+UBlhewZUPt0s5ntUeAGOSTLj2jjHweCDKw6qo=",
]
}

View file

@ -1,46 +0,0 @@
terraform {
required_version = ">= 1.6"
required_providers {
proxmox = {
source = "thegameprofi/proxmox"
version = "2.10.0"
}
}
}
resource "proxmox_vm_qemu" "vm" {
name = var.vm_name
target_node = var.node_name
vmid = var.vm_id
clone = var.cloud_init_template
os_type = "cloudinit"
qemu_os = "other"
ipconfig0 = var.ipconfig0
cores = var.core_count
sockets = 1
pool = "k3s"
memory = var.memory
ciuser = var.ci_username
agent = 0
serial {
id = 0
type = "socket"
}
disk {
size = "50G"
storage = var.disk_storage_name
type = "scsi"
}
network {
bridge = var.network_bridge_name
firewall = false
link_down = false
model = "virtio"
mtu = 0
queues = 0
rate = 0
tag = -1
}
sshkeys = var.ssh_keys
nameserver = "192.168.1.7 192.168.1.3"
}

View file

@ -1,66 +0,0 @@
variable "vm_name" {
description = "Name of the VM"
type = string
}
variable "node_name" {
description = "Name of the Proxmox node"
type = string
}
variable "vm_id" {
description = "ID of the new VM"
type = number
}
variable "cloud_init_template" {
description = "Cloud-init enabled template to be cloned"
type = string
default = "ci-debian12"
}
variable "ipconfig0" {
description = "Default inet configuration"
type = string
}
variable "ci_username" {
description = "Cloud-init username"
type = string
default = "ci"
}
variable "memory" {
description = "Available RAM, in MB"
type = number
default = 512
}
variable "core_count" {
description = "Available cores per socket"
type = number
default = 2
}
variable "network_bridge_name" {
description = "Network bridge name"
type = string
default = "vmbr0"
}
variable "ssh_keys" {
description = "SSH public keys to be provisioned"
type = string
default = <<EOF
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL++DKyzE0+zM6A4lpjWTNvntQnmEdA6FoOh6jIdsHMT catalin@jupiter
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGreLVacZyxq2EtgievpXgC/L7czKyJa/kWpgqDoPgnA phireh@GenPhireh
EOF
}
variable "disk_storage_name" {
description = "Disk storage name"
type = string
default = "storage"
}