Some checks failed
Gitea Actions Demo / Terraform Plan (push) Failing after 15s
- Remove duplicate variables (alpaca_count, llama_count) - Remove unused variables (vm_name, disk_type) - Fix outputs to use correct variable names - Fix cloud-init template to not overwrite source file - Fix hardcoded hostname in cloud-init template - Fix typo in SSH_KEY_PUBLIC description
22 lines
451 B
HCL
22 lines
451 B
HCL
output "alpaca_vm_ids" {
|
|
value = {
|
|
for i in range(var.alpaca_vm_count) :
|
|
"alpaca-${i + 1}" => proxmox_vm_qemu.alpacas[i].vmid
|
|
}
|
|
}
|
|
|
|
output "alpaca_vm_names" {
|
|
value = [for vm in proxmox_vm_qemu.alpacas : vm.name]
|
|
}
|
|
|
|
output "llama_vm_ids" {
|
|
value = {
|
|
for i in range(var.llama_vm_count) :
|
|
"llama-${i + 1}" => proxmox_vm_qemu.llamas[i].vmid
|
|
}
|
|
}
|
|
|
|
output "llama_vm_names" {
|
|
value = [for vm in proxmox_vm_qemu.llamas : vm.name]
|
|
}
|