Comments (2)
Hey @bpg Thanks for the response! I took a deeper look into the current state of the API just now.
It does look like there is now an API for importing VM disks, but there are some rough edges it seems given what another person ran into while implementing the feature in the Telmate provider: Telmate/terraform-provider-proxmox#605 (comment)
Apart from that it still seems like creating snippets is not yet supported in the API.
So overall, there probably won't be a way to support all of the features with the token yet. I think it might be possible to remove the VM disk limitation now with some effort, but that should be tracked in a separate issue.
I'll close this issue for now, and maybe come back to it if/when the API matures. Thank you for this project nonetheless!
from terraform-provider-proxmox.
Hey @pawandubey! This is a reasonable request for sure, and I'd love to see token-based auth supported by the provider.
Unfortunately, this can't be easily implemented, as we heavily dependent on ability to execute PVE commands over ssh. Particularly, in one key area -- the VM disks import:
terraform-provider-proxmox/proxmoxtf/resource_virtual_environment_vm.go
Lines 1991 to 2028 in 3c02cb1
I don't know all details why this specific approach of dealing with disks was chosen by the original plugin authors, probably due to the lack of some specific functionality from the PVE REST API.
This limitation is also indirectly mentioned in the Known Issues section of the README, I guess we need to clarify this better.
from terraform-provider-proxmox.
Related Issues (20)
- Missing protection option for VM HOT 3
- Re-imported cloned VM does not match the original plan HOT 2
- Option to filter IP addresses by interfaces HOT 5
- Impossible to add or remove disks without forcing VM resource replacement HOT 2
- Unsupported argument HOT 1
- CPU Affinity HOT 1
- `HTTP 500` on some resources when reinstalling `Proxmox` HOT 4
- Numa memory binding HOT 4
- User token HOT 1
- Related to #1107 and #1146, Container creation timeout still persist, timeout_create is ignored
- ZFS Pool (node) and Storage ZFS (cluster)
- timeouts does not apply all the time HOT 2
- Creating vms in modules leads to terraform-provider-proxmox crash HOT 3
- Not an issue but request for example? HOT 7
- Can't Create/Manage Firewall Rules at Node/Cluster Level HOT 3
- Support VirtIO RNG
- Error: error updating VM: received an HTTP 500 response - Reason: only root can set 'affinity' config on Proxmox VE 8.1.10 HOT 10
- proxmox_virtual_environment_file tries to use all the available computer memory to upload a local image and crashes HOT 6
- panic: interface conversion: interface {} is nil, not map[string]interface {} HOT 1
- Terraform registry is missing version 0.52.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 terraform-provider-proxmox.