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 Nov 8, 2024
1 parent 9d0f388 commit 604c194
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ hostname: <%= @host.name %>
fqdn: <%= @host %>
manage_etc_hosts: true
users: {}
<% if @host.provision_method == 'image' && root_pass.present? -%>
chpasswd:
expire: False
users:
- {name: root, password: <%= root_pass -%>}
<% end -%>
runcmd:
- |
<%= indent(2) { snippet 'fix_hosts' } -%>
Expand Down

0 comments on commit 604c194

Please sign in to comment.