Pages

Friday, September 19, 2014

Red Hat Satellite 6.0 - Part 4 - Creating a custom repository

In this section of my adventure with Satellite 6, I am going to setup a custom "Product" which will contain a non-Red Hat repository (VM Ware tools).  I've already one of these up for the RHEL 6 servers, so in this example I will be creating a product for RHEL 5 VM Ware tools.

Creating a GPG key
First thing is to create a GPG key. In the satellite 6 web interface, select Content > GPG Keys.

Click +New Gpg Key in the upper right.

Type in a name for the gpg key, I called it "vmware-tools-gpg."  There is a box to copy they key into or you can upload one if you have it downloaded. The one I'm using is from vmware and is located at:

  • http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
Either download that and upload it through the web interface or just paste it in. Click save. The gpg key should now be showing in the list.

Creating a Product
Click on Content > Products

There is probably already one product listed here from when we selected the RHEL repositories. Click on +New Product in the upper right.

Type in a name for the product, the Label section should automatically fill out. Select the gpg key (not required) and leave the sync plan empty for now. Enter a description if you want to. Click save.
A new product has been created! Now, a repository has to be added to the product so it will actually do something. On the product page, click on Create Repository.

Type in a name, the label should fill out by itself. Select yum for a type. In the URL section, put the URL of the repository you wish to sync. In this example, I am syncing VM Ware tools. The url is this:
  • RHEL 5
    • http://packages.vmware.com/tools/esx/5.5latest/rhel5/x86_64/
  • RHEL 6
    • http://packages.vmware.com/tools/esx/5.5latest/rhel6/x86_64/
Select the GPG key created for the product (optional). Click save when done.

Click on Sync Now to sync the repository. This will download the VM Ware tools to the Satellite.


Packages should start syncing. A details page will show itself and will present sync status as well as how many packages it found. This particular repository did not take very much time to sync.



No comments: