Bug 2104247

Summary: [RFE] version non-specific flag to enable puppet on Red Hat Satellite.
Product: Red Hat Satellite Reporter: Mohit Kushwah <mkushwah>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: ekohlvan, mhulan, rlavi, shwsingh
Target Milestone: 6.13.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:21:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Bryan Kearney 2022-08-23 12:04:59 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35066 has been resolved.

Comment 7 Gaurav Talreja 2023-02-03 16:53:01 UTC
Verified.

Tested on Satellite 6.13.0 Snap 9.0
Version: foreman-3.5.1.5-1.el8sat.noarch

Steps:
1. Setup Satellite 6.13.0, sync kickstart/OS repos, and configure provisioning
2. Create a host with either global or host param "enable-puppetlabs-repo" and activation_key
# hammer global-parameter list
-----------------------------------|-------|--------
NAME                               | VALUE | TYPE
-----------------------------------|-------|--------
ansible_roles_check_mode           | false | boolean
enable-epel                        | false | string
enable-puppetlabs-repo             | true  | string
host_packages                      |       | string
host_registration_insights         | true  | boolean
host_registration_remote_execution | true  | boolean
-----------------------------------|-------|--------

3. After host is created, check install.post.log
# cat install.post.log
...
Retrieving https://yum.puppet.com/puppet-release-el-8.noarch.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
puppet-release-1.0.0-24.el8           ########################################
Updating Subscription Management repositories.
Puppet Repository el 8 - x86_64                  27 MB/s |  14 MB     00:00
fake_yum1                                        75 kB/s | 2.3 kB     00:00
fake_yum2                                        89 kB/s | 2.3 kB     00:00
client_el8                                       90 kB/s | 2.3 kB     00:00
multi_errata                                     72 kB/s | 2.0 kB     00:00
fake_yum0                                        89 kB/s | 2.3 kB     00:00
fake_yum4                                        74 kB/s | 2.0 kB     00:00
fake_yum3                                        74 kB/s | 2.0 kB     00:00
needed_errata                                    75 kB/s | 2.0 kB     00:00
Dependencies resolved.
================================================================================
 Package              Architecture   Version               Repository      Size
================================================================================
Installing:
 puppet-agent         x86_64         7.21.0-1.el8          puppet          24 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 24 M
Installed size: 105 M
Downloading Packages:
puppet-agent-7.21.0-1.el8.x86_64.rpm             88 MB/s |  24 MB     00:00
--------------------------------------------------------------------------------
...

Observation:
When using `enable-puppetlabs-repo` host_param, which is a new non-version specific flag to enable puppet, and here puppet.conf snippet resolves this and installs the puppet-agent package from the puppet-release repo instead of the Satellite client repository.


@ekohlwan Thank you for confirming and helping me understand this RFE

Comment 10 errata-xmlrpc 2023-05-03 13:21:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2097