Test e definitiva preparazione.
This commit is contained in:
parent
0f93696e2b
commit
2c42526b20
@ -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
|
||||
),
|
||||
@ -71,5 +71,9 @@ vm = proxmox.vm.VirtualMachine("vm",
|
||||
provider = provider
|
||||
)
|
||||
)
|
||||
|
||||
# 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", vm.ipv4_address)
|
||||
pulumi.export("ip", lanip)
|
||||
|
Loading…
Reference in New Issue
Block a user