Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a VM for myself #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ locals {
phelix = {
ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINeEBqbuKi5aOXwVEaEVCEPE8g1g1su+FxSPPswmEFaw [email protected]"
}
prom = {
ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsQxpdeVl1ljSl4wIdMQ5pUBMXJybINOVBTb4hweGsf [email protected]"
}

}

Expand Down
28 changes: 28 additions & 0 deletions proxmox/109-promserv.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module "promserv_vm" {
source = "../modules/vm"
node = var.node
pool = var.pool

name = "promserv"
vm_id = "109"

clone = data.proxmox_virtual_environment_vm.debian_cloud_vm_template.vm_id

cores = 4
memory = 8192

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

network = {
bridge = var.network.bridge
internal_bridge = proxmox_virtual_environment_network_linux_bridge.internal_bridge.name
}

admins = [
local.users["prom"]
]
}
Loading