Skip to content

Commit f9382d0

Browse files
committedDec 7, 2024
add plausible, remove k3s
1 parent 5dbdf2b commit f9382d0

File tree

3 files changed

+11
-146
lines changed

3 files changed

+11
-146
lines changed
 

‎terraform/proxmox/k3s-master2.tf

-67
This file was deleted.

‎terraform/proxmox/k3s-master3.tf

-67
This file was deleted.

‎terraform/proxmox/k3s-master.tf renamed to ‎terraform/proxmox/plausible.tf

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
1-
resource "proxmox_virtual_environment_vm" "K3s-Master" {
1+
resource "proxmox_virtual_environment_vm" "Plausible" {
22

33
# VM General Settings
44
node_name = "prox"
5-
vm_id = 300
6-
name = "K3s-Master"
7-
description = "Kubernetes master"
8-
tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"]
9-
started = false
5+
vm_id = 102
6+
name = "Plausible"
7+
description = "Plausible"
8+
tags = ["tofu", "ubuntu24", "iac-repo", "infrastructure"]
109

1110
agent {
1211
enabled = true # read 'Qemu guest agent' section, change to true only when ready
1312
}
1413

1514
clone {
16-
vm_id = 8000
15+
vm_id = 9996
1716
}
1817

1918
# VM CPU Settings
2019
cpu {
21-
cores = 4
20+
cores = 2
2221
type = "host"
2322
architecture = "x86_64"
2423
}
2524

2625
# VM Memory Settings
2726
memory {
28-
dedicated = 8192
27+
dedicated = 2048
2928
}
3029

3130
# VM Network Settings
@@ -37,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
3736
# VM Disk Settings
3837
disk {
3938
datastore_id = "Fast2Tb"
40-
size = 100
39+
size = 30
4140
interface = "scsi0"
4241
}
4342

@@ -52,7 +51,7 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
5251
}
5352
}
5453

55-
user_account {}
54+
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
5655
}
5756

5857
lifecycle {
@@ -64,4 +63,4 @@ resource "proxmox_virtual_environment_vm" "K3s-Master" {
6463
]
6564
}
6665

67-
}
66+
}

0 commit comments

Comments
 (0)
Please sign in to comment.