From b75c5f69818b9a1f18eb167c74ed92cbc77c283a Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 17 Aug 2022 02:09:02 +0200 Subject: [PATCH] Astrazione per provider. --- proxmoxve-python/__main__.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/proxmoxve-python/__main__.py b/proxmoxve-python/__main__.py index f52c267..43f6f97 100644 --- a/proxmoxve-python/__main__.py +++ b/proxmoxve-python/__main__.py @@ -5,14 +5,14 @@ import pulumi_proxmoxve as proxmox config = pulumi.Config() -provider = proxmox.Provider("proxmoxve", - virtual_environment = { - "endpoint": config.require("endpoint"), - "insecure": True, - "username": "root@pam", - "password": config.require_secret("pvepassword") - } -) +#provider = proxmox.Provider("proxmoxve", +# virtual_environment = { +# "endpoint": config.require("endpoint"), +# "insecure": True, +# "username": "root@pam", +# "password": config.require_secret("pvepassword") +# } +#) vm = proxmox.vm.VirtualMachine("vm", name = "virtual-machine", @@ -66,9 +66,9 @@ vm = proxmox.vm.VirtualMachine("vm", ] ) ), - opts = pulumi.ResourceOptions( - provider = provider - ) + #opts = pulumi.ResourceOptions( + # provider = provider + #) ) pulumi.export("ip", vm.ipv4_address)