Correzioni per richiamata configurazione.
This commit is contained in:
parent
17ba664985
commit
c2dbc0e318
@ -7,16 +7,16 @@ config = pulumi.Config()
|
|||||||
|
|
||||||
provider = proxmox.Provider("proxmoxve",
|
provider = proxmox.Provider("proxmoxve",
|
||||||
virtual_environment = {
|
virtual_environment = {
|
||||||
"endpoint": config.endpoint,
|
"endpoint": config.require("endpoint"),
|
||||||
"insecure": True,
|
"insecure": True,
|
||||||
"username": "root@pam",
|
"username": "root@pam",
|
||||||
"password": config.pvepassword
|
"password": config.require_secret("pvepassword")
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
vm = proxmox.vm.VirtualMachine("vm",
|
vm = proxmox.vm.VirtualMachine("vm",
|
||||||
name = "virtual-machine",
|
name = "virtual-machine",
|
||||||
node_name = config.node_name,
|
node_name = config.require("node_name"),
|
||||||
agent = proxmox.vm.VirtualMachineAgentArgs(
|
agent = proxmox.vm.VirtualMachineAgentArgs(
|
||||||
enabled = True,
|
enabled = True,
|
||||||
trim = True,
|
trim = True,
|
||||||
@ -31,7 +31,7 @@ vm = proxmox.vm.VirtualMachine("vm",
|
|||||||
dedicated = 2048
|
dedicated = 2048
|
||||||
),
|
),
|
||||||
clone = proxmox.vm.VirtualMachineCloneArgs(
|
clone = proxmox.vm.VirtualMachineCloneArgs(
|
||||||
node_name = config.node_name,
|
node_name = config.require("node_name"),
|
||||||
datastore_id = "local-lvm",
|
datastore_id = "local-lvm",
|
||||||
size = 20,
|
size = 20,
|
||||||
file_format = "qcow2"
|
file_format = "qcow2"
|
||||||
|
Loading…
Reference in New Issue
Block a user