mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
fix: include Docker storage resources in version-filtered Terraform targets
When provisioning a subset of versions (-Version 9), the -target flags only included PVE VM resources. Docker storage containers (iSCSI, NFS) were skipped because they weren't targeted. Now always includes all Docker resources in the target list since storage is shared across all PVE versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -230,6 +230,12 @@ cmd_provision() {
|
||||
tf_targets="$tf_targets -target=proxmox_virtual_environment_file.auto_iso[\"$node\"]"
|
||||
tf_targets="$tf_targets -target=proxmox_virtual_environment_vm.nested_pve[\"$node\"]"
|
||||
done
|
||||
# Always include shared Docker storage resources
|
||||
tf_targets="$tf_targets -target=docker_image.ubuntu"
|
||||
tf_targets="$tf_targets -target=docker_container.iscsi_target"
|
||||
tf_targets="$tf_targets -target=docker_container.nfs_server"
|
||||
tf_targets="$tf_targets -target=docker_volume.iscsi_data"
|
||||
tf_targets="$tf_targets -target=docker_volume.nfs_data"
|
||||
log "Terraform targets: $tf_targets"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user