Repo Configuration to Satellite

Latest response

I have the installation instructions for Satellite but am new to the product. I have training scheduled but would like to try some of the tasks myself. I don't know if I'm missing the section on how to do this, but what should the /etc/yum.repos.d/satellite.repo file look like on one of my servers (RHEL7.2 in this case) in order to point to the available repos on the Satellite server?

Of course, satellite.repo is just what I'm calling it, it can be called anything.

Thanks.

Responses

I'm new to Satellite as well and but I believe the repo file itself should be managed by subscription-manager. Trying to manage the baseurl manually would probably be difficult as it's built upon the organizations and life cycle environments you define in Satellite. The repo file that I have is /etc/yum.repos.d/redhat.repo and the first bit of it looks like:

#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated.  Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider 
# a "yum repolist" to refresh available repos
#

[rhel-7-server-rh-common-rpms]
metadata_expire = 1
sslclientcert = /etc/pki/entitlement/9444444444444444444.pem
baseurl = https://rhsat2.oakland.edu/pulp/repos/Oakland_University/Development/Red_Hat_Enterprise_Linux_7/content/dist/rhel/server/7/$releasever/$basearch/rh-common/os
ui_repoid_vars = releasever basearch
sslverify = 1
name = Red Hat Enterprise Linux 7 Server - RH Common (RPMs)
sslclientkey = /etc/pki/entitlement/9444444444444444444-key.pem
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1

Not sure if that helps. Note that the repo file come from the subscription-manager package

rpm -qf /etc/yum.repos.d/redhat.repo 
subscription-manager-1.15.9-15.el7.x86_64

You also need to have the katello certificate package installed from your satellite. Mine is katello-ca-consumer-rhsat2.oakland.edu-1.0-1.noarch

rpm -ql katello-ca-consumer-rhsat2.oakland.edu-1.0-1.noarch
/etc/rhsm/ca/katello-default-ca.pem
/etc/rhsm/ca/katello-server-ca.pem

The installation instructions detail most of this.

Hope that helps a little.

Thomas is correct.

What you are attempting to do (create local repo file for Satellite server) will not achieve your goal. The host needs to be joined to the Satellite server using subscription manager which will then make available the repositories selected/configured on the Satellite server.

Steps 1-3 in this thread outline the basic process of getting your host joined to Satellite: https://access.redhat.com/discussions/1528223

Thanks, appreciate the response. I'm following the instructions in Chapter 14 of the Users guide so I installed the katello-ca-consumer-latest.noarch.rpm as requested, then subscription-manager register the server to Satellite, then ensured satellite-tools was enabled on the Satellite server. The next step was to yum install katello-agent however since the redhat.repo file was basically blank, it wasn't able to find a server to connect to in order to get the agent.

I'll check the link from the support response as well.

Thanks!

I think the problem is I don't have a valid repo associated with the Activation Key. It's a 7.2 system but it's showing a 5.8 repo although the repo list shows 5.8, 6.4, and 7.2 as part of the Key. Still puzzling out how this thing works.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.