mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-12-03 10:43:03 +00:00
Добавлен счетчик для создания подобных ресурсов (#9)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
This commit is contained in:
committed by
GitHub
parent
946cde1ea6
commit
a327438868
@@ -1,4 +1,7 @@
|
||||
output "ip_address_vm_01" {
|
||||
description = "IP адрес vm-01"
|
||||
value = proxmox_virtual_environment_vm.vm-01.ipv4_addresses[1]
|
||||
output "vm_info" {
|
||||
description = "Names and IP addresses of the created VMs"
|
||||
value = {
|
||||
for i in range(var.vm_count) :
|
||||
format("vm-%02d", i + 1) => proxmox_virtual_environment_vm.vm[i].ipv4_addresses[1]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user