Skip to content

Commit

Permalink
Fixes #37901 - Set root password through Cloudinit deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan3296 committed Oct 10, 2024
1 parent 699995e commit 4719f3a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ users: {}
runcmd:
- |
<%= indent(2) { snippet 'fix_hosts' } -%>
<% if @host.provision_method == 'image' && root_pass.present? -%>
- |
# Install the root password
echo 'root:<%= root_pass -%>' | /usr/sbin/chpasswd -e
<% end -%>
- |
<%= indent(2) { snippet 'yum_proxy' } -%>
- |
Expand Down

0 comments on commit 4719f3a

Please sign in to comment.