Skip to content

Commit

Permalink
Fix module not mapping to the right storage
Browse files Browse the repository at this point in the history
Signed-off-by: Alec Hinh <[email protected]>
  • Loading branch information
ahinh43 committed Dec 5, 2024
1 parent b0045c9 commit 3b34f5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/standard-vms/debian-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion modules/standard-vms/debian-vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion vm_userdata/palworld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b34f5f

Please sign in to comment.