public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [pve-devel] [PATCH qemu-server] api: cloud-init support for mtu and userdata
@ 2020-09-04 15:21 proxmox
  2020-09-07  7:33 ` Alexandre DERUMIER
  2020-09-09 14:05 ` Mira Limbeck
  0 siblings, 2 replies; 9+ messages in thread
From: proxmox @ 2020-09-04 15:21 UTC (permalink / raw)
  To: pve-devel

Hello



I didn't know this patch mail got approved, so sorry for the (very) late response.



My intention for not going with snippets was the fact that they could not be created via the API and one would have to manually create a file on the target machine for cloud-init userdata.



One possible use case was to spin up a kubernetes cluster on proxmox only via API.



I wanted to have something similar to the hetzner cloud API where the full userdata can be submitted for VM provisioning:
https://docs.hetzner.cloud/#servers-create-a-server



So going further here you want me to submit the MTU patches separately?



Should I integrate userdata into the cicustom field? I thought this would make things more complex in favor of parsing out the base64 stuff. So I would still go with an extra field.

Thoughts?


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [pve-devel] [PATCH qemu-server] api: cloud-init support for mtu and userdata
@ 2020-07-13 15:06 Julien Escario
  0 siblings, 0 replies; 9+ messages in thread
From: Julien Escario @ 2020-07-13 15:06 UTC (permalink / raw)
  To: pve-devel

Hello,
First, sorry, I'm taking the thread from the archive, don't have much
history.

To the question :
"Any reason why snippets [0] are not enough for custom userdata?"

Yes, there's one : in the generated, there's a few vm-specific options,
like "fqdn:" and "hostname:" parameters. Having them auto-generated in
PVE is really nice and remove the need to have a snippet file per VM.

With snippets, one can only REPLACE generated user-data. So, the fqdn
and hostname parameters are completely gone which leads to the need of
one snippet file per VM.

Having the ability to EXTEND the generated user-data is really needed.
So we can add only vm-agnostic parameters like sshkeys, packages and so
on ...

On another approach, I wrote a (really) small patch adding the
vendor-data custom file [1] but I'm not a developer and submitting a
proper usable patch is out of my capacity.

vendor-data never supersede user-data [2] so no other change should be
required.

cloud-init support in Proxmox is almost complete, please consider
integrating one of the 2 solutions inside your code base so we could
full automate VM deployment using the API and 'plug' the VM into a
config management system like puppet, ansible, chef, whatever.

Thanks a lot !

1 :
https://forum.proxmox.com/threads/combining-custom-cloud-init-with-auto-generated.59008/page-2
2 : https://cloudinit.readthedocs.io/en/latest/topics/vendordata.html



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [pve-devel] Extend cloud-init API with MTU and userdata
@ 2020-07-02 16:08 Marius Schellenberger
  2020-07-02 16:08 ` [pve-devel] [PATCH qemu-server] api: cloud-init support for mtu " Marius Schellenberger
  0 siblings, 1 reply; 9+ messages in thread
From: Marius Schellenberger @ 2020-07-02 16:08 UTC (permalink / raw)
  To: pve-devel



To fully automate virtual machine creation and configuration via the
Proxmox API, I added configuration support for MTU and userdata to the
cloud-init options.

These options can now be configured using the API or Web-UI and are
stored in the qemu-server/*.conf configuration file, removing the need
for an extra userdata snippets file volume.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-09 14:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 15:21 [pve-devel] [PATCH qemu-server] api: cloud-init support for mtu and userdata proxmox
2020-09-07  7:33 ` Alexandre DERUMIER
2020-09-09  9:06   ` proxmox
2020-09-09 13:02     ` Alexandre DERUMIER
2020-09-09 13:46       ` Alexandre DERUMIER
2020-09-09 14:05 ` Mira Limbeck
  -- strict thread matches above, loose matches on Subject: below --
2020-07-13 15:06 Julien Escario
2020-07-02 16:08 [pve-devel] Extend cloud-init API with MTU " Marius Schellenberger
2020-07-02 16:08 ` [pve-devel] [PATCH qemu-server] api: cloud-init support for mtu " Marius Schellenberger
2020-07-13 12:51   ` Mira Limbeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal