Fixed new interface.

This commit is contained in:
Emiliano Vavassori 2023-12-31 22:55:35 +01:00
parent 378ae3caac
commit 052df02ebc

View File

@ -9,16 +9,14 @@ conf = DotMap(yaml.safe_load(open("input.yaml").read()))
config = pulumi.Config()
provider = proxmox.Provider("proxmoxve",
virtual_environment = {
"endpoint": conf.pve.url,
"insecure": conf.pve.insecure,
"username": conf.pve.username,
"password": config.require_secret("password")
}
endpoint=conf.pve.url,
insecure=conf.pve.insecure,
username=conf.pve.username,
password=config.require_secret("password")
)
vm = proxmox.vm.VirtualMachine(conf.vm.name,
node_name = conf.pve.nodename,
node_name=conf.pve.nodename,
agent = proxmox.vm.VirtualMachineAgentArgs(
enabled = True,
trim = True,