Fixes #28903 - Stop installer when package install fails
The puppet resource command always exits with code 0, even when the package failed to install. This approach uses puppet apply with detailed exit codes to detect when it failed. It also unifies all PUP-2169 workarounds in a single file and execution.
Related issues
Bug #28903: Foreman 2.0 nightly installer shows errors when a package can't be installed but doesn't fail
Fixes #28903 - Stop installer when package install fails
The puppet resource command always exits with code 0, even when the
package failed to install. This approach uses puppet apply with detailed
exit codes to detect when it failed. It also unifies all PUP-2169
workarounds in a single file and execution.