Initial setup of Satellite 6.4 on RHEL 7

Satellite 6.4
Red Hat Satellite

In the previous post, we covered the process of installing Satellite 6.4 on a Red Hat Enterprise Linux 7 Server. In this article, we will be going over the initial steps required to prepare Satellite to manage RHEL 7 servers.

Steps for initial Satellite Server setup.

  • Logging into the GUI
  • Setting up the initial subscription manifest
  • Importing the manifest into Satellite
  • Activating the required repositories to sync
  • Performing the initial repository sync
  • Setting up a daily sync plan

Initial login to the Satellite 6.4 GUI

As you recall, from the previous example you provided with the URL on the Satellite GUI upon completion of the satellite-installer command. This will be the fully qualified domain name of the server. In our case that was https://sat64.home.therootuser.com. If you try to access the URL and find you are unable to, the most likely reason is you have forgotten to add the appropriate firewall rules. The connection is via https, and as it is a self signed certificate you will notice that the browsers will complain. This is normal, just accept the certificate and you will not be asked about this agian.

The initial login screen of the Satellite 6.4 GUI

Verify your organization and location

When we set up the server we specified the default Organization and Location. If you did not do this during installation you will want to create your default organization and location within the GUI for your initial setup of Satellite. You will also see there is an option for Default Organization and Default Location. These are generic place holders when nothing was specified, and generally, you would not want to use those.

Verifying our Default organization and location.

Creating the subscription manifest for Satellite

In order for Satellite to function properly, you need to assign Red Hat entitlements that you have available to your manifest. This will allow servers that register with Satellite to obtain the appropriate entitlement for that server type, and thus be able to obtain the required patches. You can do this by either purchasing the required amount of entitlements from Red Hat or if you already have them removing them from your already registered servers within the Red Hat portal. You will then register those servers with Satellite instead of via the Red Hat portal. By doing this Satellite will be managing the entitlements and patch management of those servers rather than the Red Hat customer portal as before.

Starting at the Customer Portal

We start this process by going to https://access.redhat.com. In your account choose subscriptions, which will show you all the active subscription contracts within your organization.

Listing of all our subscription on access.redhat.com

We then want to create our manifest, so choose Subscription Allocations from the top menu, and give your manifest a name that has meaning for you and your organization. Choose the Satellite type, which in our case is Satellite 6.4.

Setting up our new manifest for Satellite.

Adding our subscriptions

You are then brought to the next screen where you can see the details of your manifest, as well as a tab for subscriptions. Click on the subscriptions tab and choose the entitlements you wish to add. You will pick the number you wish to attach, and then choose add. For this demonstration, I just grabbed 5 entitlements for RHEL. Once this is done, click on the Export Manifest button on the bottom left to download this manifest as a .zip file to the location of your choice.

Adding subscriptions to the manifest.

Importing the manifest into Satellite 6.4

Now that we have our manifest it is time to import it into Satellite. You will do this by going to Content > Subscriptions. Then choose Import a Manifest in the middle of the screen. If you need to update or change your manifest in the future, you can return to this screen and choose Manage Manifest instead to either refresh or replace the manifest completely. When you choose Import a Manifest a pop-up dialog box will come up, and ask where your manifest is located. Point to where you downloaded your manifest and then upload it.

Import a Manifest into Satellite

Once you specify the location the manifest will begin to import. This will take a little time, so just be patient while it does its thing.

Manifest importing into Satellite

When the import process is finished you will be brought back to the main screen, this time you will see your subscriptions, as well as how many are currently consumed, as well as the total number of entitlements. In my example you can see that 0 are consumed, and we have a total of 5 available.

All our subscriptions ready to go within Satellite.

Attaching required RHEL repositories

Now that we have entitlements, the next core item that is required is repositories so you can both provision servers and patch managed servers within your Satellite enviornment. You can do so by going to Content > Red Hat Repositories. You may notice quite a few options, which can be daunting to say the least. To make it easier, you can filter the results down by typing in the rpm name as I have done in this example. This brought my results down from hundreds of pages to just 2.

Enable RHEL repositories within Satellite.

Look for the yellow star.

Another thing that will help is looking for the yellow star icon. This was next to the Red Hat Enterprise Linux 7 Server RPMs. Hitting the drop down arrow shows the various options. For best practices you want to choose the main RHEL 7Server RPM, which will allow your servers to upgrade as 7.x continues to move forward. If you choose 7.4 instead, any servers allocated to this would be locked at 7.4. A better option would be to set the release version within a content view, or the operating system to a specific version if this is what you wish.

Activating the RHEL 7 repos.

Finally, just click on the plus button, and it will move over to the Enabled Repositories side of the screen.

The RHEL 7 Repos are activated within Satellite

Do not forget the Satellite Tools

We also want to grab Satellite Tools, as this will be needed to manage the RHEL servers with our Satellite server. Just type in RHEL-7-server-satellite-tools-6.4-rpms and it will show you the one and only option.

Adding Satellite Tools 6.4 too Satellite.

Click on the plus for this RPM as well, and you will see it added along with our RHEL 7 repositories. These are the minimum repositories that we will need to manage our servers. You will want to add any other repositories that any of your servers will require. With the use of content views we can have certain servers see various repositories, this way not all servers have access to every repository within Satellite. This way you can have content views for Web Servers, Database Servers, or File Servers and specify specific role based repositories to just those specific type of servers.

Satellite Tools 6.4 are now enabled.

Syncronizing the repsitories

At this point, we have just told Satellite these are the repositories that we wish to use. The actual repo data is not on the Satellite server just yet. This will require a initial sync to obtain this information. We start this process by going to Content > Sync Status. Then you can expand all to view all your repositores, or just choose select all.

Performing the initial sync of your repositories.

Once they are all selected, or at least the ones you wish to start syncing at this time, choose Synchronize Now. Satellite Tools will go fairly quickly as it is just 25.7 MB. RHEL 7 is over 30 GBs however, so will take time, and can take 30 minutes to a few hours depending on network speed and disk speed of your server. If you have many repositories this initial process is going to take some time. Subsequent syncs will go much faster as it will just gather what is new instead downloading all repositories at once.

Synchronizing in process, this process will take time.

Once the sync is finished you will see a Syncing Complete notification on all your repositories. As you can see with my lab example, it took 2 hours to sync the RHEL 7 repositories. Therefore, plan accordingly during your initial setup of Satellite phase.

Synchronizing has been completed

Setting up a daily sync plan

Now our repos won’t do any good if we just sync them once and never again, as over time what we have will begin to drift apart from what Red Hat is providing. Therefore for the initial setup of Satellite, we want to set up a sync plan. I usually do once a day, however, you can choose hourly, daily, or weekly. To get started, choose Content > Sync Plans > Create Sync Plan.

Setting up a daily sync plan.

Give your sync plan a descriptive name, as well as add a description as to what it does. Pick your interval, I went with daily, when you wish the sync plan to start, and what time (based on a 24-hour clock). I like setting mine early in the morning when other network traffic will be low. Once everything looks good, choose Save.

Our sync plan will be daily at 1 am.

Once done, you will then get to choose what products will be attached to this sync plan. You can have different plans for different products based on how often you need those to update. To add the products, choose the product tab, then choose add, check the product you wish to add, then choose Add Selected.

Adding our products to the sync plan.

Once you have done this you will see your sync plan, when the original sync date was, what the interval is, and when the next sync time will be. You can see in this example, the next sync time will be April 23rd at 1 am.

The sync plan is finish and ready to go.

What is next?

Our initial setup of Satellite server is now configured for basic usage at this time. You could register servers to it now, and have Satellite provide updates to them with no further configuration if you so wish. Usually, however, you will want to configure more settings though to have Satellite fit within your organization. This includes things such as setting up Content Views, Host Groups, configuring your Infrastructure with Subnet information, and adding users and user groups for allowing others to manage certain aspects within Satellite. Future articles will cover each one of those in more detail as we continue working toward our end goal of provisioning a RHEL server within AWS. Before that can be done we need to finish configuring the server to deal with provisioning, as well as build a capsule server within AWS.

Satellite 6.4 menu

Share

Ivan Windon

Ivan Windon is a Site Reliability Engineer at IBM. Ivan is actively engaged in Cloud Technologies with AWS, Google, and Azure. Ivan has extensive experience with Linux and Windows administration, DNS, Networking, IDM, and Security. In his free time, he enjoys being with his wife and two children. The family enjoys hiking, and traveling when able. His favorite locations are Yosemite NPS, and San Francisco, California.

You may also like...

3 Responses

  1. Excellent article, You help me a lot!

  2. Dharani says:

    Excellent article, thanks a lot

  3. Srinivasan Sooravelu says:

    Really Excellent and detailed explanations which is real time solution.
    I could successfully configured to my Environment.
    Thanks a lot !!!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.