mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-24 22:56:01 +03:00
[GH-ISSUE #193] Unable to use cicustom with yaml input #109
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @harshguptaserver on GitHub (Dec 14, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/193
Hello proxmoxer team,
I am a long time user of your library in my homelab. I find it great and really love the simplicity.
source: :ref: https://proxmoxer.github.io/docs/latest/examples/cloud-init/
Here is my sample code:
Error:
desired solution : read the yml file and create cloud-init of the vm ( the yml file has multiple keys and config )
Note: the yml file works fine if i use shell command by copying yml manually :
Sample yml file
@morph027 commented on GitHub (Dec 14, 2024):
Unfortunately, you can't pass the YAML content, it must be a file located on the proxmox node itself. So you need to transfer the YAML file from the client to a server location accessible for PVE and then the VM can use it.
There's a pending bug report to add an endpoint for the snippets storage type, which would be very feasible for this task: https://bugzilla.proxmox.com/show_bug.cgi?id=2208
As a workaround, I'm using a third party server for uploading the files to a location also being used as snippet store (Example).
You can find the quite complex project here: Source + Docs
@harshguptaserver commented on GitHub (Dec 15, 2024):
Thank you for the quick reply @morph027 . I checked the code shared by you.
For a quick workaround, I have decided to SSH to the node and upload the yml file.
For anyone who stumbles here see my code below ( this copies the yml based in str format to the snippets for 'local' storage), don't forget to set the cicustom afterwards:
@morph027 commented on GitHub (Dec 15, 2024):
Nice one 👍 SSH is such a obvious way of uploading that i just missed it somehow. Probably going to update my project to using SSH as it's much less hassle setting up 😆