Correzioni per richiamata configurazione.

This commit is contained in:
Emiliano Vavassori 2022-08-17 01:57:25 +02:00
parent 17ba664985
commit c2dbc0e318

View File

@ -7,16 +7,16 @@ config = pulumi.Config()
provider = proxmox.Provider("proxmoxve",
virtual_environment = {
"endpoint": config.endpoint,
"endpoint": config.require("endpoint"),
"insecure": True,
"username": "root@pam",
"password": config.pvepassword
"password": config.require_secret("pvepassword")
}
)
vm = proxmox.vm.VirtualMachine("vm",
name = "virtual-machine",
node_name = config.node_name,
node_name = config.require("node_name"),
agent = proxmox.vm.VirtualMachineAgentArgs(
enabled = True,
trim = True,
@ -31,7 +31,7 @@ vm = proxmox.vm.VirtualMachine("vm",
dedicated = 2048
),
clone = proxmox.vm.VirtualMachineCloneArgs(
node_name = config.node_name,
node_name = config.require("node_name"),
datastore_id = "local-lvm",
size = 20,
file_format = "qcow2"