Project

General

Profile

Actions

Bug #37901

open

The "CloudInit default" template is not designed to set or update the root password on deployed systems

Added by Sayan Das about 2 months ago. Updated about 2 months ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Difficulty:
easy
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When deploying a system via Cloud-init and Userdata, in VMware, the root password set on the deployed system is the same as the root password of the VM template.

Say,

  • Root password in VM template is password@123
  • When creating the system, I mentioned my root password as qwerty@123 and then submitted the system build.
  • Once the system comes up, It will still have the root password set as password@123 but NOT what we expected it to be i.e. qwerty@123

We do change it for other type of deployments i.e. via templates Kickstart Default Finish or Kickstart Default Userdata but not for Cloud init default e.g.

# grep root_pass app/views/unattended/provisioning_templates/user_data/kickstart_default_user_data.erb -B3 -A1

<%# Cloud instances frequently have incorrect hosts data %>
<%= snippet 'fix_hosts' %>

<% 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 about 2 months ago

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

Also available in: Atom PDF