Project

General

Profile

Feature #30792

Set root password for preseed image-based deployment

Added by Fabrice Brimioulle about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When deploying an Ubuntu/Debian host using the image-based deployment the root password is not set/changed. The mechanism requires the password to be set in the finish template (Preseed default finish). This can be achieved adding following lines:

<% if @host.provision_method == 'image' && root_pass.present? -%>
# Install the root password
echo 'root:<%= root_pass -%>' | /usr/sbin/chpasswd -e
<% end -%>

Associated revisions

Revision 65230156 (diff)
Added by Fabrice Brimioulle about 1 year ago

Fixes #30792 - Added root pw for image based deploy

Co-authored-by: Ewoud Kohl van Wijngaarden <>

History

#1 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7968 added

#2 Updated by Fabrice Brimioulle about 1 year ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Tomer Brisker 11 months ago

  • Fixed in Releases 2.3.0 added

Also available in: Atom PDF