diff --git a/main.tf b/main.tf index e7c88e4..76b5542 100644 --- a/main.tf +++ b/main.tf @@ -36,7 +36,7 @@ module "ark_ascended" { source = "./modules/standard-vms/debian-vm" name = "ark-ascended" target_node = "nia" - clone_storage = "pve" + clone_storage = "local-lvm" ip_address = "10.1.1.30" gateway_address = "10.1.1.1" cpu_cores = 8 @@ -50,7 +50,7 @@ module "palworld_1" { source = "./modules/standard-vms/debian-vm" name = "palworld-1" target_node = "shizuru" - clone_storage = "pve" + clone_storage = "local-lvm" ip_address = "10.1.1.32" gateway_address = "10.1.1.1" cpu_cores = 6 diff --git a/modules/standard-vms/debian-vm/main.tf b/modules/standard-vms/debian-vm/main.tf index 43f0d2c..35c577a 100644 --- a/modules/standard-vms/debian-vm/main.tf +++ b/modules/standard-vms/debian-vm/main.tf @@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "main" { } initialization { - datastore_id = var.cloudinit_datastore_id + datastore_id = var.clone_storage ip_config { ipv4 { address = "${var.ip_address}${var.ip_subnet_cidr}" diff --git a/modules/standard-vms/debian-vm/variables.tf b/modules/standard-vms/debian-vm/variables.tf index 6757b13..a80827b 100644 --- a/modules/standard-vms/debian-vm/variables.tf +++ b/modules/standard-vms/debian-vm/variables.tf @@ -96,7 +96,7 @@ variable "cloudflare_dns_name_override" { variable "cloudinit_datastore_id" { description = "Name of the datastore to place the cloudinit disk in. Defaults to pve" type = string - default = "pve" + default = "pve-cephfs" } variable "cloudinit_disk_interface" { diff --git a/vm_userdata/palworld.yaml b/vm_userdata/palworld.yaml index 15f142b..e691443 100644 --- a/vm_userdata/palworld.yaml +++ b/vm_userdata/palworld.yaml @@ -20,7 +20,7 @@ apt: deb-src $MIRROR $RELEASE main contrib non-free non-free-firmware deb $SECURITY $RELEASE-securityE main contrib non-free non-free-firmware deb-src $SECURITY $RELEASE-security main contrib non-free non-free-firmware -hostname: palworld-1.kubevirt-vms.svc.cluster.local +hostname: palworld-1.labs.ahinh.me ssh_pwauth: False disable_root: false package_update: true