Add VM Plausible configuration
This commit is contained in:
parent
b18f911ae7
commit
d4ccc55bfe
1 changed files with 51 additions and 0 deletions
51
terraform/proxmox/Plausible.tf
Normal file
51
terraform/proxmox/Plausible.tf
Normal file
|
@ -0,0 +1,51 @@
|
|||
resource "proxmox_virtual_environment_vm" "Plausible" {
|
||||
node_name = "prox"
|
||||
vm_id = "7894"
|
||||
name = "Plausible"
|
||||
description = "Website tracker"
|
||||
|
||||
cpu {
|
||||
cores = "3"
|
||||
type = "host"
|
||||
architecture = "x86_64"
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = "4096"
|
||||
}
|
||||
|
||||
network_device {
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 1
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "Fast2Tb"
|
||||
size = "30"
|
||||
interface = "scsi0"
|
||||
}
|
||||
|
||||
clone {
|
||||
vm_id = "9996"
|
||||
}
|
||||
|
||||
initialization {
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "dhcp"
|
||||
gateway = null
|
||||
}
|
||||
}
|
||||
|
||||
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
|
||||
}
|
||||
|
||||
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
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue