[Spacewalk-list] Adding system to Spacewalk

InvalidPath invalid.path at gmail.com
Mon Feb 27 23:39:54 UTC 2017


So today I tried adding a CentOS 5.9 system to my Spacewalk 2.6.6 server.
Following the instructions here: https://fedorahosted.org/spacewalk/wiki/
RegisteringClients

RHEL 5 / CentOS 5

# rpm -Uvh http://yum.spacewalkproject.org/2.6-client/RHEL/5/x86_64/
spacewalk-client-repo-2.6-0.el5.noarch.rpm
# BASEARCH=$(uname -i)
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-
5.noarch.rpm

Install client packages

# yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto
yum-rhn-plugin

Install Spacewalk's CA certificate on the server to enable SSL
communication (change rpm version in this command if needed)

# rpm -Uvh http://YourSpacewalk.example.com/pub/rhn-org-trusted-ssl-
cert-1.0-1.noarch.rpm

Register your system to Spacewalk using the activation key you created
earlier

# rhnreg_ks --serverUrl=https://YourSpacewalk.example.org/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=<key-with-rhel-custom-channel>

Running the last command string, inserting my own activation code between
the <> results in:

# rhnreg_ks --serverUrl=https://cent7-spacewalk/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=<
1a26837a13937eb3744e670f87ed973c>
bash: syntax error near unexpected token `newline'

If I remove the <> marks the command sit there, never completing or
erroring out.  What am I doing wrong?  I added the Spacewalk ip and
hostnaem to local /etc/hosts file.. I can ping both successfully.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170227/93da5b8e/attachment.htm>


More information about the Spacewalk-list mailing list