Registering CentOS Clients

This section contains information about registering traditional and Salt clients running CentOS operating systems.

Set up a CentOS Client

The spacewalk-utils package contains a number of upstream command line tools required for client administration. You will also require the spacewalk-common-channels tool. Keep in mind SUSE only provides support for spacewalk-clone-by-date and spacewalk-manage-channel-lifecycle tools.

The /etc/rhn/spacewalk-common-channels.ini configuration file must contain the channel references you want to add. If a channel is not listed, check the latest version for updates:

You will also need an activation key associated with the CentOS channel. For more information on activation keys, see client-configuration:clients-and-activation-keys.adoc.

Procedure: Adding Channels and Repositories
  1. At the command prompt on the Uyuni Server, as root, install the spacewalk-utils package:

    zypper in spacewalk-utils
  2. Add the CentOS base, updates, and client channels using the spacewalk-common-channels script:

    spacewalk-common-channels -u admin -p`secret`-a x86_64 'centos7'
    spacewalk-common-channels -u admin -p`secret`-a x86_64 'centos7-updates'
    spacewalk-common-channels -u admin -p`secret`-a x86_64 'centos7-uyuni-client-x86_64'
Procedure: Synchronizing CentOS Clients
  1. In the Uyuni Web UI, navigate to Main Menu  Software  Manage, and select the base channel you want to synchronize.

  2. In the Repositories tab, navigate to the Sync subtab, and click Sync Now. You can also create a regular synchronization schedule on this page.

When you have prepared you Uyuni Server, you can install your CentOS client using your preferred installation media and method.

Procedure: Setting up a CentOS Client
  1. At the command prompt, copy all relevant GPG keys to /srv/www/htdocs/pub. If you intend to use a bootstrap script to register your client, you can add the GPG keys to your bootstrap script.

  2. Check that the client machine can resolve itself and your Uyuni Server using DNS.

  3. Check that there is an entry in /etc/hosts for the real IP address of the client.

  4. Create an activation key called centos7 on the Uyuni Server that points to the correct parent and child channels, including the CentOS base repository, updates, and client channels.

When you are ready to register your CentOS client, follow the instructions in client-configuration:registration-overview.adoc.