Preparing Channels and Repositories for CentOS Traditional Clients
This following section provides an example procedure for configuring CentOS channels and repositories and finally registering a CentOS client with SUSE Manager.
These steps will be identical for Scientific Linux and Fedora.
-
As root install spacewalk-utils on your SUSE Manager server:
zypper in spacewalk-utils
Supported ToolsThe spacewalk-utils package contains a collection of upstream command line tools which provide assistance with spacewalk administrative operations. You will be using thespacewalk-common-channels
tool. Keep in mind SUSE only provides support forspacewalk-clone-by-date
andspacewalk-manage-channel-lifecycle
tools. -
Run the
spacewalk-common-channels
script to add the CentOS7 base, updates, and Spacewalk client channels.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 'spacewalk26-client-centos7'
Required Channel ReferencesThe/etc/rhn/spacewalk-common-channels.ini
must contain the channel references to be added. If a channel is not listed, check the latest version here for updates: https://github.com/spacewalkproject/spacewalk/tree/master/utils -
From the Web UI select
. Select the base channel you want to synchronize, in this caseCentOS7 (x86_64)
. Select . Check the channels you want to synchronize and then click the Sync Now button or, optionally, schedule a regular synchronization time. -
Copy all relevant GPG keys to
/srv/www/htdocs/pub
. Depending on what distribution you are interested in managing these could include an EPEL key, SUSE keys, Red Hat keys, and CentOS keys. After copying these you can reference them in a comma-delimited list within your bootstrap script (see Procedure: Preparing the Bootstrap Script).-
CentOS7 key files: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
-
EPEL key file: http://mirrors.kernel.org/fedora-epel/RPM-GPG-KEY-EPEL-7
-
Spacewalk key: http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2015
-
Red Hat keys: http://www.redhat.com/contact/security-response-team/gpg-keys.html
-
-
Install and setup a CentOS 7 client with the default installation packages.
-
Ensure the client machine can resolve itself and your SUSE Manager server via DNS. Validate that there is an entry in
/etc/hosts
for the real IP address of the client. -
Create an activation key (
centos7
) on the SUSE Manager server that points to the correct parent/child channels, including the CentOS base repo, updates, and Spacewalk client.
Now prepare the bootstrap script.
-
Create/edit your bootstrap script to correctly reflect the following:
# can be edited, but probably correct (unless created during initial install): # NOTE: ACTIVATION_KEYS *must* be used to bootstrap a client machine. ACTIVATION_KEYS=1-centos7 ORG_GPG_KEY=res.key,RPM-GPG-KEY-CentOS-7,suse-307E3D54.key,suse-9C800ACA.key,RPM-GPG-KEY-spacewalk-2015 FULLY_UPDATE_THIS_BOX=0 yum clean all # Install the prerequisites yum -y install yum-rhn-plugin rhn-setup
-
Add the following lines to the bottom of your script, (just before
echo “-bootstrap complete -”
):# This section is for commands to be executed after registration mv /etc/yum.repos.d/Cent* /root/ yum clean all chkconfig rhnsd on chkconfig osad on service rhnsd restart service osad restart
-
Continue by following normal bootstrap procedures to bootstrap the new client.
Registering CentOS Salt Minions with SUSE Manager
The following procedure will guide you through registering a CentOS Minion.
Support for CentOS Patches
CentOS uses patches originating from CentOS is not officially supported by SUSE . See the matrix of SUSE Manager clients on the main page of the SUSE Manager wiki, linked from the Quick Links section: https://wiki.microfocus.com/index.php?title=SUSE_Manager |
-
Add the Open Build Service repo for Salt:
yum-config-manager --add-repo http://download.opensuse.org/repositories/systemsmanagement:/saltstack:/products/RHEL_7/
-
Import the repo key:
rpm --import http://download.opensuse.org/repositories/systemsmanagement:/saltstack:/products/RHEL_7/repodata/repomd.xml.key
-
Check if there is a different repository that contains Salt. If there is more than one repository listed disable the repository that contains Salt apart from the OBS one.
yum list --showduplicates salt
-
Install the Salt minion:
yum install salt salt-minion
-
Change the Salt configuration to point to the SUSE Manager server:
mkdir -p /etc/salt/minion.d echo "master:`server_fqdn`" > /etc/salt/minion.d/susemanager.conf
-
Restart the minion
systemctl restart salt-minion
-
Proceed to
from the Web UI and accept the minion’s key.