I have noticed that when I register my Rocky Linux 8 and Rocky Linux 9 hosts to Foreman I am seeing this in the redhat.repo on the client:
[OPS_EPEL8_EPEL_8_-_x86_64]
name = EPEL 8 - x86_64
baseurl = https://gp2us1opsfm01-main02a.tdsops.net/pulp/content/OPS/OPS_Dev/OPS_Wave_1_Rocky8-CCV/custom/EPEL8/EPEL_8_-_x86_64
enabled = 1
gpgcheck = 0
sslverify = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
sslclientkey = /etc/pki/entitlement/7579220149647201502-key.pem
sslclientcert = /etc/pki/entitlement/7579220149647201502.pem
metadata_expire = 1
enabled_metadata = 0
enable = 1
I know what “enabled = 1” mean but what does “enable = 1” mean? As much as I try I am not able to google it correctly.
You can insert any arbitrary content overrides you like, by using subscription-manager commands. If it’s not a valid one, it will be ignored. enable = 1
probably isn’t doing anything. enabled = 1
is the correct one.
Whats interesting is that the redhat.repo does not exist before registering with Foreman. When we register it subscription-manager writes the redhat.repo and thats what it puts in it. So its subscription-manager thats writing the enable=1 along with the enabled=1.
I create a few test build systems and its always subscription-manager creating it right after the registration. No one else has logged in to the host the has not been touched by anything else.
It’s possible a nonstandard content override was somehow added to an activation key.
In foreman-rake console
, you could check this:
Katello::ActivationKey.find_by(name: 'ak1').content_overrides
(replace ak1
with your activation key’s name).
That does show me enable=1 and enabled=1. So its a non standard content override??? Weird.
I had forgotten about this issue from a while back. Hammer probably allowed you to add it:
I knew it was not something I intentionally tried to do. Well its there and no harm done.
I probably created it while I was trying to enable the repos in the Activation Keys and on the hosts. Since I was doing it via hammer.
Good to know.
Thanks.
1 Like