Project

General

Profile

Actions

Bug #33089

closed

Don't store plugin_prefix (and hammer_plugin_prefix) in answers

Added by Evgeni Golov over 3 years ago. Updated over 3 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

Also available in: Atom PDF