Skip to content

Commit

Permalink
netboot machine for PXE-stuff in the crew network
Browse files Browse the repository at this point in the history
  • Loading branch information
ij0n committed Jul 2, 2023
1 parent 2037aca commit 40d4f5c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ locals {
users = {
hrmny = {
ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEDtuIourWzbibkXqsJYk8IHxl4SIvxmnttrlUALu8XS [email protected]"
saces = {
ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL5JruwHRLLVW1LDcoUymftOgqt6I2khSvvSnNLk7XZ4 [email protected]"
}
}

Expand Down
28 changes: 28 additions & 0 deletions proxmox/netboot.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module "netboot_vm" {
source = "../modules/vm"

name = "netboot"
node = var.node

# teraform provider is broken and tries to apply every time
# pool = local.pool

qemu_agent = true

cores = 1
memory = 2048

disk = {
// gigabytes
size = 48
storage = var.storage.disk
}

network = {
bridge = var.network.bridge
}

ssh_keys = [
var.users["saces"].ssh_key
]
}

0 comments on commit 40d4f5c

Please sign in to comment.