Support automatic reinstallation of puppet-agent-oauth on Debian
Since #29097 foreman-installer has automatically reinstalled puppet-agent-oauth on RPMs. This is needed when the Ruby version of Puppet's AIO package has changed. While that typically only happens on a major version upgrade, it's great for users to have it automated. Especially with Foreman 3.0 adding support for Puppet 7.
https://github.com/theforeman/foreman-installer/pull/641 started this effort already.
Fixes #33191 - Debian puppet-agent-oauth reinstall support
This has been supported for a while on RPM-based distros. This adds it
It also changes it to log an error on noop that it detected an incorrect
Credits to Tim Eilers for the specific dpkg/apt commands. This PR takes
a bit different implementation approach by also looking at facts. This
should save some useless command executions on both platforms.
#4 Updated by Ewoud Kohl van Wijngaarden 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset installer|567172b6411ed9d0731614fd29455e8b7877ccd0.