spacewalk client side packages
Here are the packages that are needed on the clients in order to register and managed by the server
Here is list of the command taken from the script that we use at Kronos
echo Installing the Spacewalk yum repository:
yum install -y yum-plugin-tmprepo
yum install -y spacewalk-client-repo --tmprepo=https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.10-client/epel-7-x86_64/repodata/repomd.xml --nogpg
echo installing spacewalk client repo
yum install -y spacewalk-client-repo --tmprepo=https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.10-client/epel-7-x86_64/repodata/repomd.xml --nogpg
echo Installing client packages:
yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin osad
echo Installing additional client packages for remote cmd execution:
yum -y install rhncfg rhncfg-actions rhncfg-client --nogpg
echo Enabling osad service to survive the reboots:
systemctl enable osad
echo Enabling remote command execution on the client:
rhn-actions-control --enable-all
echo Verifying/Checking remote command execution on the client - should read enable for run at least:
rhn-actions-control --report
echo stopping the osad service to re-create the osad auth info
systemctl stop osad
echo Forcing the existing osad auth info by renaming the file
mv /etc/sysconfig/rhn/osad-auth.conf /etc/sysconfig/rhn/osad-auth.conf.old
echo Creating new directory to move all the existing repos
mkdir /etc/yum.repos.d/repo_backup
echo moving all the existing repos in the new repo directory
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_backup
# mv /etc/yum.repos.d/spacewalk-client.repo.rpmsave /etc/yum.repos.d/repo_backup
echo Refresh repo data quietly
yum repolist -q
echo Creating a cronjob for the osad service to check with the registred spacewalk server
echo "*/15 * * * * /usr/sbin/rhn_check" > /tmp/spw-cronjob.txt
cat /tmp/spw-cronjob.txt | crontab -
echo unsetting proxy env on the client for the next steps
unset http_proxy
unset https_proxy
echo Installing Spacewalk CA certificate from koss01-oss01-lpm01-app:
rpm -Uvh http://koss01-oss01-lpm01-app-1581438274.int.oss.cigar.inc/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
echo Registering client with the spw server in KOSS: koss01-oss01-lpm01-app-1581438274.int.oss.cigar.inc
rhnreg_ks --force --serverUrl=https://koss01-oss01-lpm01-app-1581438274.int.oss.cigar.inc/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-ol-repo-cos77-gcp-kcap-grp-spw-keys
echo starting the osad service to re-generate new auth info
systemctl start osad
echo running the osad check command once manually to report to the reg server
rhn_check
echo System is registered with spw server and can be managed from the spw server