Project

General

Profile

Actions

Bug #33089

closed

Don't store plugin_prefix (and hammer_plugin_prefix) in answers

Added by Evgeni Golov almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Today, we expose plugin_prefix and hammer_plugin_prefix as params in puppet-foreman, which means these get stored as answers.
However, this means that one can't restore a backup from a different OS (like from EL7 on EL8), as the prefix changes (tfm-rubygem → rubygem).

I think that users rarely (read: never) have to override our automatic detection of the prefix, so we should move that out of params (and answers).
For the rare case of a user needing to override this, we shall allow that via an "foreman::globals" class, that can be overriden via hiera.

See https://github.com/theforeman/puppet-foreman_proxy/commit/935d45ab53e59fa5424a60eb54b29ccf6b666313 for an related example in puppet-foreman_proxy


Related issues 1 (0 open1 closed)

Related to Installer - Bug #33106: Move more variables from in puppet-foreman to globals.ppClosedEwoud Kohl van WijngaardenActions
Actions #1

Updated by The Foreman Bot almost 3 years ago

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

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #3

Updated by Evgeni Golov almost 3 years ago

  • Related to Bug #33106: Move more variables from in puppet-foreman to globals.pp added
Actions #4

Updated by Evgeni Golov almost 3 years ago

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

Updated by Amit Upadhye over 2 years ago

  • Category set to Foreman modules
  • Target version set to 3.0.0
Actions

Also available in: Atom PDF