-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #37901 - Set root password through Cloudinit deployments #10343
base: develop
Are you sure you want to change the base?
Conversation
Could someone suggest \ help fix the |
c4afe0b
to
1bfd82a
Compare
I managed to find out how to do it after checking with one of the developers. |
Hello @ShimShtein @stejskalleos , Please review and let me know if any concerns |
app/views/unattended/provisioning_templates/cloud_init/cloud_init_default.erb
Outdated
Show resolved
Hide resolved
1bfd82a
to
4719f3a
Compare
With recent changes pushed w.r.t the request done by @ekohl, I had regenerated the snapshots as well, but after adding and amending everything to the existing commit, I don't see any snapshots are added to the commit. It is probably because earlier an extra Please re-review |
app/views/unattended/provisioning_templates/cloud_init/cloud_init_default.erb
Outdated
Show resolved
Hide resolved
@sayan3296, can we use the standard |
I can try and let you know. But when relying on cloud-init itself and using |
Ok.. So perhaps i know the answer i.e. In the VM template, we would need Let me know @ShimShtein if we still want to do this and then I can test it out. This is the Sat 6.15 doc for your reference of cloud.cfg config file in VM templates. |
I tested on RHEL 8.10 and 9.4 and can confirm what I said in my comment above i.e. #10343 (comment) Let me know if you want me to push those changes. The concerned part looks something like this i.e.
|
I'd quote Looking at our docs, we mention I also thought we set up the user data as a VMware datasource, but I don't see that in our docs. Perhaps out of scope here, but if we're reviewing the whole feature I think we should look at it. |
If you take a look at the Example tab of https://cloudinit.readthedocs.io/en/latest/reference/modules.html#set-passwords , It does not require or suggest the quoting here.
I might be misunderstanding here but We do use And as far as the DataSource is concerned, we have always used the If we should re-review the whole thing, then perhaps we can try to conclude the root password part here and then separately brainstorm about the current workflow and what improvement can be done there. |
4719f3a
to
08d004f
Compare
hello @ShimShtein , I have tested using the chpasswd module of cloud-init and pushed the changes here accordingly. The only requirement is to have the RedHat doc updated i.e. the step where we suggest a configuration for
|
08d004f
to
604c194
Compare
@ekohl what do you think about it? IMHO it's an OK solution, and the price of an extra module is worth the standardization of the template. |
When deploying a system via Cloud-init and Userdata, in VMware, the root password set on the deployed system is the same as the root password of the VM template.
Say,
We do change it for other types of deployments i.e. via templates Kickstart Default Finish or Kickstart Default Userdata but not for Cloudinit default e.g.
The same method can be applied for Cloudinit as well