mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 18:42:58 +00:00
* wip * experimenting with terraform plugin framework * cleaning up poc and adding tests * adding read / update / delete * update bridge_vlan_aware and MTU * add ipv6 and simplify IP support * fix provider's schema * add docs * run linter from cmdline * disable TF acceptance tests * add VLAN * update docs * add examole * cleanup
16 lines
392 B
HCL
16 lines
392 B
HCL
data "proxmox_virtual_environment_vms" "example" {
|
|
depends_on = [proxmox_virtual_environment_vm.example]
|
|
tags = ["ubuntu"]
|
|
|
|
lifecycle {
|
|
postcondition {
|
|
condition = length(self.vms) == 1
|
|
error_message = "Only 1 vm should have this tag"
|
|
}
|
|
}
|
|
}
|
|
|
|
output "proxmox_virtual_environment_vms_example" {
|
|
value = data.proxmox_virtual_environment_vms.example.vms
|
|
}
|