Skip to content

Commit 3ba9192

Browse files
fix: add lifecycle block to ignore changes for disk file_id in controlplane and worker resources (#94)
1 parent cafde89 commit 3ba9192

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

proxmox_vm_controlplanes.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
resource "proxmox_virtual_environment_vm" "controlplane" {
22
for_each = local.controlplanes
33

4+
lifecycle {
5+
ignore_changes = [disk[0].file_id]
6+
}
7+
48
node_name = each.value.node
59
name = each.key
610
description = templatefile("${path.module}/templates/description.tftpl", {

proxmox_vm_worker.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
resource "proxmox_virtual_environment_vm" "worker" {
22
for_each = local.workers
33

4+
lifecycle {
5+
ignore_changes = [disk[0].file_id]
6+
}
7+
48
node_name = each.value.node
59
name = each.key
610
description = templatefile("${path.module}/templates/description.tftpl", {

0 commit comments

Comments
 (0)