adding npm

This commit is contained in:
Matt Reeves 2024-06-07 01:05:29 -04:00
parent aa19a91522
commit 7ed88bf1ef
5 changed files with 73 additions and 4 deletions

View file

@ -5,7 +5,7 @@ resource "proxmox_virtual_environment_vm" "Arrbuntu" {
vm_id = 200
name = "arrbuntu"
description = "arrbuntu"
tags = ["tofu", "ubuntu-22"]
tags = ["tofu", "ubuntu-22, auto-homelab-repo, infrastructure"]
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready
@ -23,7 +23,7 @@ resource "proxmox_virtual_environment_vm" "Arrbuntu" {
# VM Memory Settings
memory {
dedicated = 10240
dedicated = 12288
}
# VM Network Settings

View file

@ -5,7 +5,7 @@ resource "proxmox_virtual_environment_vm" "Downloaders" {
vm_id = 201
name = "Downloaders"
description = "Sab, Qbitty"
tags = ["tofu", "ubuntu-22"]
tags = ["tofu", "ubuntu-22, auto-homelab-repo, infrastructure"]
agent {
enabled = false # read 'Qemu guest agent' section, change to true only when ready

65
npm.tf Normal file
View file

@ -0,0 +1,65 @@
resource "proxmox_virtual_environment_vm" "NPM" {
# VM General Settings
node_name = "prox"
vm_id = 204
name = "Nginx-Proxy-Manager"
description = "Nginx Proxy Manager"
tags = ["tofu", "ubuntu24, auto-homelab-repo, infrastructure"]
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready
}
clone {
vm_id = 8002
}
# VM CPU Settings
cpu {
cores = 2
type = "host"
}
# VM Memory Settings
memory {
dedicated = 2048
}
# VM Network Settings
network_device {
bridge = "vmbr0"
vlan_id = 1
}
# VM Disk Settings
disk {
datastore_id = "Fast2Tb"
size = 40
interface = "scsi0"
}
vga {
type = "serial0"
}
initialization {
ip_config {
ipv4 {
address = var.npm_ip_address
gateway = var.vlan_gateway
}
}
user_account {}
}
lifecycle {
ignore_changes = [
initialization[0].user_account[0].keys,
initialization[0].user_account[0].password,
initialization[0].user_account[0].username,
]
}
}

View file

@ -57,4 +57,8 @@ variable "ssh_username" {
variable "prox_ip_address" {
type = string
}
variable "npm_ip_address" {
type = string
}

View file

@ -6,7 +6,7 @@ resource "proxmox_virtual_environment_vm" "Whisper" {
name = "Whisper"
machine = "q35"
description = "Creates subtitles for Bazarr and stable-diffusion"
tags = ["tofu", "ubuntu-22"]
tags = ["tofu", "ubuntu-22, auto-homelab-repo"]
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready