Project

General

Profile

Actions

Feature #31684

closed

SSH keys snippet should use user/sshkey kickstart statements

Added by Lukas Zapletal over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

During investigation of problem with RHV provisioning, I have found out that all commands issued in %post scriplet after "nodectl init" are never persisted due to LVM layering. Therefore installing SSH keys via %post shell script will not work as well.

There is a workaround for that, keys can be installed via user/sshkey kickstart statements. However sudo (sudoers) still needs to be done via %post which will be ignored for RHV. This will be limitation, only root can be used to perform SSH jobs on RHV hosts. We should document that if this patch gets in.

More details at: https://bugzilla.redhat.com/show_bug.cgi?id=1842484

Actions #1

Updated by Lukas Zapletal over 3 years ago

  • Description updated (diff)
Actions #2

Updated by The Foreman Bot over 3 years ago

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

Updated by Lukas Zapletal over 3 years ago

  • Status changed from Ready For Testing to Rejected
Actions

Also available in: Atom PDF