Test e definitiva preparazione.

This commit is contained in:
Emiliano Vavassori 2022-08-17 02:44:02 +02:00
parent 0f93696e2b
commit 2c42526b20

View File

@ -32,7 +32,7 @@ vm = proxmox.vm.VirtualMachine("vm",
dedicated = 2048
),
clone = proxmox.vm.VirtualMachineCloneArgs(
node_name = data.require("node_name"),
node_name = data.get("node_name"),
vm_id = config.require("clonevm"),
full = True
),
@ -72,4 +72,8 @@ vm = proxmox.vm.VirtualMachine("vm",
)
)
pulumi.export("ip", vm.ipv4_address)
# Getting local IP
# First item of the ipv4_addresses is of the loopback interface (so the usual 127.0.0.1). Let's get the second and grab only the text.
lanip = vm.ipv4_addresses[1][0]
pulumi.export("ip", lanip)