Ancora correzioni al template.
This commit is contained in:
parent
b75c5f6981
commit
bda7120cd9
@ -4,19 +4,20 @@ import pulumi
|
|||||||
import pulumi_proxmoxve as proxmox
|
import pulumi_proxmoxve as proxmox
|
||||||
|
|
||||||
config = pulumi.Config()
|
config = pulumi.Config()
|
||||||
|
data = pulumi.require_object("pve")
|
||||||
|
|
||||||
#provider = proxmox.Provider("proxmoxve",
|
provider = proxmox.Provider("proxmoxve",
|
||||||
# virtual_environment = {
|
virtual_environment = {
|
||||||
# "endpoint": config.require("endpoint"),
|
"endpoint": data.get("endpoint"),
|
||||||
# "insecure": True,
|
"insecure": True,
|
||||||
# "username": "root@pam",
|
"username": "root@pam",
|
||||||
# "password": config.require_secret("pvepassword")
|
"password": data.get_secret("password")
|
||||||
# }
|
}
|
||||||
#)
|
)
|
||||||
|
|
||||||
vm = proxmox.vm.VirtualMachine("vm",
|
vm = proxmox.vm.VirtualMachine("vm",
|
||||||
name = "virtual-machine",
|
name = "virtual-machine",
|
||||||
node_name = config.require("node_name"),
|
node_name = data.get("node_name"),
|
||||||
agent = proxmox.vm.VirtualMachineAgentArgs(
|
agent = proxmox.vm.VirtualMachineAgentArgs(
|
||||||
enabled = True,
|
enabled = True,
|
||||||
trim = True,
|
trim = True,
|
||||||
@ -31,7 +32,7 @@ vm = proxmox.vm.VirtualMachine("vm",
|
|||||||
dedicated = 2048
|
dedicated = 2048
|
||||||
),
|
),
|
||||||
clone = proxmox.vm.VirtualMachineCloneArgs(
|
clone = proxmox.vm.VirtualMachineCloneArgs(
|
||||||
node_name = config.require("node_name"),
|
node_name = data.require("node_name"),
|
||||||
vm_id = config.require("clonevm"),
|
vm_id = config.require("clonevm"),
|
||||||
full = True
|
full = True
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user