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 9, 2024
1 parent 699995e commit 1bfd82a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ 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' } -%>
- |
<%= indent(2) { snippet 'ntp' } -%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runcmd:
ff02::2 ip6-allrouters
EOF
- |
- |

- |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runcmd:
ff02::2 ip6-allrouters
EOF
- |
- |

- |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runcmd:
ff02::2 ip6-allrouters
EOF
- |
- |

- |

Expand Down

0 comments on commit 1bfd82a

Please sign in to comment.