Project

General

Profile

Actions

Feature #30792

closed

Set root password for preseed image-based deployment

Added by Fabrice Brimioulle almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
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 -%>

Actions #1

Updated by The Foreman Bot almost 4 years ago

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

Updated by Fabrice Brimioulle almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Tomer Brisker over 3 years ago

  • Fixed in Releases 2.3.0 added
Actions

Also available in: Atom PDF