Comments (7)
can you please check again with the newest version? i just tried to import one of my VMs and it worked without any problems.
my code was:
"""A Python Pulumi program"""
import pulumi
import pulumi_proxmoxve as proxmoxve
test_vm = proxmoxve.vm.get_virtual_machine(node_name="pve", vm_id=100)
pulumi.export("vm", test_vm)
the output of a preview was:
Previewing update (dev)
View in Browser (Ctrl+O): https://app.pulumi.com/muhlba91/pulumi-python/dev/previews/c87efab6-c1c2-4262-971b-f37de3b79c40
Type Name Plan
+ pulumi:pulumi:Stack pulumi-python-dev create
Outputs:
vm: {
id : "100"
name : "OPNSense"
node_name: "pve"
tags : [
[0]: "infrastructure"
[1]: "prod"
]
vm_id : 100
}
Resources:
+ 1 to create
my environment variables are (redacted):
export PROXMOX_VE_USERNAME="root@pam"
export PROXMOX_VE_PASSWORD="<PASSWORD>"
export PROXMOX_VE_ENDPOINT="https://<IP_ADDRESS>:8006/"
export PROXMOX_VE_INSECURE="true"
from pulumi-proxmoxve.
Your code worked, after changing the parameters. The output didnt really contain much information.
Is it possible to query an existing vm of its config so I can fill in the values requested of me when creating a new vm, like what bios, network configs, bridge etc...
See link for values of interest
https://www.pulumi.com/registry/packages/proxmoxve/
from pulumi-proxmoxve.
this extension needs to be filed in the upstream provider (https://github.com/bpg/terraform-provider-proxmox).
basically, this provider maps the terraform provider's actions and resources for pulumi.
you can see the relevant resource/datasource in upstream here: https://github.com/bpg/terraform-provider-proxmox/blob/main/proxmoxtf/datasource/vm.go#L29
the upstream datasource needs to be extended here before the pulumi provider can pick it up as well.
can you create an upstream issue and cross-reference it for tracking purposes?
from pulumi-proxmoxve.
Sorry for opening and closing, im pressing the wrong button...
Im not familiar with cross referencing issues in github, a fast google didnt make me any wiser. Is it just linking the issue here or do you want me to do something else?
Issue created
bpg/terraform-provider-proxmox#674
from pulumi-proxmoxve.
no worries, and thanks for the cross-referencing by posting the upstream issue link! itβs just that one finds the upstream issue when checking that one out. ππ»
from pulumi-proxmoxve.
Do you want a new issue for implementing that, I take it as this issue has been resolved, and can be closed after agreeing on what to do with the upstream issue
from pulumi-proxmoxve.
just keep this one open. π
once the upstream issue has been resolved/implemented and this provider updated, iβll close it as resolved.
until then everyone finding this issue knows that itβs still open, and can find the link to the upstream issue for reference.
from pulumi-proxmoxve.
Related Issues (20)
- Startup/Shutdown options require the up_delay and down_delay to be set up HOT 4
- Are there any plans on supporting LXC containers? HOT 2
- VirtualMachineDiskSpeedArgs HOT 1
- Lack of python documentation
- No parity with upstream tf proxmox provider HOT 3
- Disable default values? HOT 1
- Empty/non set container features forces replacement on import
- How to disable replacing CTs on `pulumi up`? HOT 4
- Resizing disk on a clone endless loop HOT 2
- C# SDK CloudInit not take care or configuration on deploy HOT 3
- Add HA group support HOT 4
- Missing pool id after pool import leads to recreating the pool HOT 3
- timeouts does not apply all the time HOT 2
- Invalid Go SDK module HOT 2
- Python SDK: "grpc: received message larger than max" HOT 2
- Dependency Dashboard
- Publish Java SDK
- Support Start/Shutdown Orders HOT 2
- Update to upstream 0.25.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi-proxmoxve.