cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
414 stars 150 forks source link

Provide more options for NoCloudConfigDrive metadata service and customization in executing plugins per instance or per boot #93

Open MohammadrezaNasrabadi opened 2 years ago

MohammadrezaNasrabadi commented 2 years ago

Hi

I am using cloudbase-init for my use case. As We are providing personal cloud solution, so We can't use any cloud providers such Openstack, Azure,...

So, in order to user cloudbase-init for our custom solution, I'm using NoCloudConfigDrive metadata service. But unfortunately this metadata service supports only instance-id , hostname and executing user-data that is not enough for me in my use case.

I could resolve my issues with using user-data capabilities, such create user, set password, .... But all of these capabilities in user-data will execute together and I not found any way to execute specific parts of user-data lonely, without changing in instance-id value.

Is this possible for you to provide more options in meta-data file for NoCloudConfigDrive such as create user, set password and ... that their execution process must be apart of each other? So I will be able to manage these options with plugins that use meta-data information.

And one of my other problems is that cloudbase-init executes its plugins that are related to meta-data per instance-id. Or if I don't provide instance-id to my VMs, that it is not in my goals, all of the plugins will re-execute per instance boot.

I want to act with these plugins that some of them should execute per instance and some of them should execute per boot. Is it possible?

MohammadrezaNasrabadi commented 2 years ago

Any response?! @ajaeger