Cloud-init userdata support?

Lucian

Member
Nov 7, 2017
35
1
13
41
Hi,

I notice cloud-init supports passwords and ssh keys with Linux guests, but no userdata.
When will userdata become available?

Regards,
Lucian
 
There's a patch on the devel list currently that enables the use of custom userdata, networkdata and metadata files instead of the generated ones.
 
Are you able to find it and do you know if it will make it in the stable product?
The list archives do not have search functionality...
 
One of the newest mails. We'll have to see if it gets merged or not.
 
Yes, you can specify your own userdata, networkdata and metadata files to use instead of the generated ones.
 
  • Like
Reactions: morph027
@mira Hi, I see that this patch is already available in 5.4 version. I see that for qm create there is
--cicustom [meta=<volume>] [,network=<volume>] [,user=<volume>]
cloud-init: Specify custom files to replace the automatically generated ones at start.

But is there a way to specify it from GUI? or a way to pass some additonal user data apart from a GUI? I usually clone fresh vm and specify, ips and other things in GUI, but I would like to pass puppet configuration to this new VM - puppetserver name, CA cert. Is there a way to do it "nice and easy" without using CLI ?
 
No, there's no way to do that via GUI. What you will be able to do in 6.0 is dump the autogenerated config, add your certs and everything and set the custom file in a hookscript (pre-start). This way you can use the config that's generated from the information set via the GUI as a base.
 
  • Like
Reactions: PiotrD and morph027
When it is ready, but as it is based on Debian Buster it will be after Buster is released.
 
  • Like
Reactions: PiotrD

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!