From d534503c544b4aa8dfef10396ac4aa34375fbba4 Mon Sep 17 00:00:00 2001 From: mistsage2 Date: Sat, 18 Oct 2025 10:48:44 -0400 Subject: [PATCH] Testing First Deployment --- homelab_pub | 1 + srv-debianlxc.tf | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 homelab_pub create mode 100644 srv-debianlxc.tf diff --git a/homelab_pub b/homelab_pub new file mode 100644 index 0000000..01623d0 --- /dev/null +++ b/homelab_pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJo337iE4+Ry7T65Ey+2QQ9aRaGxP7zzLtMV+hBPyA59 eddsa-key-20250525 \ No newline at end of file diff --git a/srv-debianlxc.tf b/srv-debianlxc.tf new file mode 100644 index 0000000..50b874e --- /dev/null +++ b/srv-debianlxc.tf @@ -0,0 +1,23 @@ +resource "proxmox_lxc" "basic" { + target_node = "pve" + hostname = "lxc-basic" + ostemplate = "local:nfs_Vulnerable/debian-13-standard_13.1-2_amd64.tar.zst" + password = "BasicLXCContainer" + unprivileged = true + description = "Nice" + ssh_public_keys = <<-EOT + ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJo337iE4+Ry7T65Ey+2QQ9aRaGxP7zzLtMV+hBPyA59 eddsa-key-20250525 + EOT + + // Terraform will crash without rootfs defined + rootfs { + storage = "nfs_Protected" + size = "8G" + } + + network { + name = "eth0" + bridge = "vmbr0" + ip = "dhcp" + } +} \ No newline at end of file