add plausible, remove k3s
Some checks failed
OpenTofu Automation / deploy (push) Failing after 22s

This commit is contained in:
Matt Reeves 2024-12-07 17:29:28 -05:00
parent 5dbdf2b1ff
commit f9382d0b2a
3 changed files with 11 additions and 146 deletions

View file

@ -1,67 +0,0 @@
resource "proxmox_virtual_environment_vm" "K3s-Master2" {
# VM General Settings
node_name = "pve2"
vm_id = 321
name = "K3s-Master2"
description = "Kubernetes Master"
tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"]
started = false
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready
}
clone {
vm_id = 8005
}
# VM CPU Settings
cpu {
cores = 4
type = "host"
architecture = "x86_64"
}
# VM Memory Settings
memory {
dedicated = 8192
}
# VM Network Settings
network_device {
bridge = "vmbr0"
vlan_id = 1
}
# VM Disk Settings
disk {
datastore_id = "local-lvm"
size = 100
interface = "scsi0"
}
vga {
type = "serial0"
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
user_account {}
}
lifecycle {
ignore_changes = [
initialization[0].user_account[0].keys,
initialization[0].user_account[0].password,
initialization[0].user_account[0].username,
initialization[0].user_data_file_id
]
}
}

View file

@ -1,67 +0,0 @@
resource "proxmox_virtual_environment_vm" "K3s-Master3" {
# VM General Settings
node_name = "prox"
vm_id = 330
name = "K3s-Master3"
description = "Kubernetes master"
tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"]
started = false
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready
}
clone {
vm_id = 8000
}
# VM CPU Settings
cpu {
cores = 4
type = "host"
architecture = "x86_64"
}
# VM Memory Settings
memory {
dedicated = 8192
}
# VM Network Settings
network_device {
bridge = "vmbr0"
vlan_id = 1
}
# VM Disk Settings
disk {
datastore_id = "Fast2Tb"
size = 100
interface = "scsi0"
}
vga {
type = "serial0"
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
user_account {}
}
lifecycle {
ignore_changes = [
initialization[0].user_account[0].keys,
initialization[0].user_account[0].password,
initialization[0].user_account[0].username,
initialization[0].user_data_file_id
]
}
}

View file

@ -1,31 +1,30 @@
resource "proxmox_virtual_environment_vm" "K3s-Master" {
resource "proxmox_virtual_environment_vm" "Plausible" {
# VM General Settings
node_name = "prox"
vm_id = 300
name = "K3s-Master"
description = "Kubernetes master"
tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"]
started = false
vm_id = 102
name = "Plausible"
description = "Plausible"
tags = ["tofu", "ubuntu24", "iac-repo", "infrastructure"]
agent {
enabled = true # read 'Qemu guest agent' section, change to true only when ready
}
clone {
vm_id = 8000
vm_id = 9996
}
# VM CPU Settings
cpu {
cores = 4
cores = 2
type = "host"
architecture = "x86_64"
}
# VM Memory Settings
memory {
dedicated = 8192
dedicated = 2048
}
# VM Network Settings
@ -37,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
# VM Disk Settings
disk {
datastore_id = "Fast2Tb"
size = 100
size = 30
interface = "scsi0"
}
@ -52,7 +51,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
}
}
user_account {}
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
}
lifecycle {
@ -64,4 +63,4 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
]
}
}
}