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() config = pulumi.Config()
provider = proxmox.Provider("proxmoxve", provider = proxmox.Provider("proxmoxve",
virtual_environment = { endpoint=conf.pve.url,
"endpoint": conf.pve.url, insecure=conf.pve.insecure,
"insecure": conf.pve.insecure, username=conf.pve.username,
"username": conf.pve.username, password=config.require_secret("password")
"password": config.require_secret("password")
}
) )
vm = proxmox.vm.VirtualMachine(conf.vm.name, vm = proxmox.vm.VirtualMachine(conf.vm.name,
node_name = conf.pve.nodename, node_name=conf.pve.nodename,
agent = proxmox.vm.VirtualMachineAgentArgs( agent = proxmox.vm.VirtualMachineAgentArgs(
enabled = True, enabled = True,
trim = True, trim = True,