Project

General

Profile

Feature #31684

SSH keys snippet should use user/sshkey kickstart statements

Added by Lukas Zapletal 3 months ago. Updated about 2 months ago.

Status:
Rejected
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
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

History

#1 Updated by Lukas Zapletal 3 months ago

  • Description updated (diff)

#2 Updated by The Foreman Bot 3 months ago

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

#3 Updated by Lukas Zapletal about 2 months ago

  • Status changed from Ready For Testing to Rejected

Also available in: Atom PDF