{ "created": "2021-06-04T03:52:15Z", "hierarchy": [ { "name": "ROOT", "type": "folder", "uri": "/ROOT" }, { "name": "Ancient Sysadmin Stuff", "type": "folder", "uri": "Ancient_Sysadmin_Stuff" }, { "name": "Configuring Spacewalk Client", "type": "article", "uri": "Ancient_Sysadmin_Stuff/Configuring_Spacewalk_Client" } ], "html": "\n\n \n \n \n \n\n \n \n\n \n \n \n \n \n\n Configuring Spacewalk Client\n\n \n \n \n \n
\n
\n \n
\n
\n \n \n\n\n

Configuring Spacewalk Client

\n\n

Pre-Flight

\n\n

Preparing the Client for Registration

\n

Install the necessary packages

\n

On CentOS 5

\n
rpm -Uvh http://spacewalk.redhat.com/yum/1.3/RHEL/5/i386/spacewalk-client-repo-1.3-1.el5.noarch.rpm  \nyum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin\n
\n

Install the Spacewalk server certificate

\n

You’ll find the Spacewalk server certificate in the /pub folder:

\n
rpm -Uvh http://spacewalk.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm\n
\n

This installs the certificate file (RHN-ORG-TRUSTED-SSL-CERT) in /usr/share/rhn

\n

Edit /etc/sysconfig/rhn/up2date

\n

I only changed the values of serverURL and sslCACert:

\n
sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT\nserverURL=https://spacewalk.example.com/XMLRPC\n
\n

Install EPEL

\n

You’ll get GPG key signing errors (like “Public key for blah is not\ninstalled”) otherwise:

\n
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm\n
\n

Register the client to the Spacewalk server

\n

Make sure you have two things:

\n
    \n
  1. A properly configured /etc/sysconfig/rhn/up2date file
  2. \n
  3. The correct activation key
  4. \n
\n

Then issue:

\n
rhnreg_ks --activationkey=1-d31a1b9465e576d5250de5da356b00a0\n
\n

Setting up Provisioning

\n

Install these packages:

\n
yum -y install rhncfg rhncfg-actions rhncfg-client osad\n
\n

Enable the provisioning action on the client:

\n
rhn-actions-control --enable-all\n
\n

Read the man page for more fine-tuning. Now make sure that osad and\nrhnsd are running:

\n
service osad start  \nchkconfig --level 345 osad on  \nservice rhnsd start  \nchkconfig --level 345 rhnsd on\n
\n

You should be all set now.

\n

Setting up Monitoring

\n

Install the rhnmd package and make sure it’s running:

\n
yum -y install rhnmd  \nservice rhnmd start  \nchkconfig --level 345 rhnmd on\n
\n

Make sure that the client firewall allows connections from port 4545\n(default).

\n

Installing this package creates a new user called nocpulse, whose\nhomedir is /var/lib/nocpulse. Now ask for the nocpulse-identity\npublic key from the server and put it in\n/var/lib/nocpulse/.ssh/authorized_keys. Provided you’ve set up the\nserver properly, you should be all set now.

\n

Errors and Miscellanea

\n

“Local permission not set for action type configfiles.deploy” (code 42)

\n

Make sure that you ran rhn-actions-control.

\n

‘Seeing’ Server Commands

\n
osad -N -v -v -v -v\n
\n

Unregistering a Client

\n

Open /etc/yum/pluginconf.d/rhnplugin.conf and change

\n
enabled = 1\n
\n

to

\n
enabled = 0\n
\n

You may also want to clean up and reinstall RHN-related packages

\n
yum remove rhn*\n
\n

Sources

\n\n\n\n
\n \n
\n \n \n \n \n \n\n", "id": "fe3e7b8a-02a1-58d2-9a76-6badbd079458", "modified": "2022-06-13T23:23:48Z", "revisions": [ { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2022-06-13T23:23:48Z", "id": "6be928c4c8de048934c03e3c61539c9ceec7d59a", "shortId": "6be928c4", "subject": "Update config.yml", "content": "Pre-Flight\n----------\n\n* The Spacewalk server is **spacewalk.example.com**\n * CentOS 5.5 i386\n* The client to be registered is **client.example.com**\n * CentOS 5.5 i386\n\nPreparing the Client for Registration\n-------------------------------------\n\n### Install the necessary packages\n\nOn CentOS 5\n\n rpm -Uvh http://spacewalk.redhat.com/yum/1.3/RHEL/5/i386/spacewalk-client-repo-1.3-1.el5.noarch.rpm \n yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin\n\n### Install the Spacewalk server certificate\n\nYou'll find the Spacewalk server certificate in the `/pub` folder:\n\n rpm -Uvh http://spacewalk.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm\n\nThis installs the certificate file (RHN-ORG-TRUSTED-SSL-CERT) in `/usr/share/rhn`\n\n### Edit `/etc/sysconfig/rhn/up2date`\n\nI only changed the values of `serverURL` and `sslCACert`:\n\n sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT\n serverURL=https://spacewalk.example.com/XMLRPC\n\n### Install EPEL\n\nYou'll get GPG key signing errors (like \"Public key for blah is not\ninstalled\") otherwise:\n\n rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm\n\nRegister the client to the Spacewalk server\n-------------------------------------------\n\nMake sure you have two things:\n\n1. A properly configured `/etc/sysconfig/rhn/up2date` file\n2. The correct activation key\n\nThen issue:\n\n rhnreg_ks --activationkey=1-d31a1b9465e576d5250de5da356b00a0\n\nSetting up Provisioning\n-----------------------\n\nInstall these packages:\n\n yum -y install rhncfg rhncfg-actions rhncfg-client osad\n\nEnable the provisioning action on the client:\n\n rhn-actions-control --enable-all\n\nRead the `man` page for more fine-tuning. Now make sure that `osad` and\n`rhnsd` are running:\n\n service osad start \n chkconfig --level 345 osad on \n service rhnsd start \n chkconfig --level 345 rhnsd on\n\nYou should be all set now.\n\nSetting up Monitoring\n---------------------\n\nInstall the `rhnmd` package and make sure it's running:\n\n yum -y install rhnmd \n service rhnmd start \n chkconfig --level 345 rhnmd on\n\nMake sure that the client firewall allows connections from port 4545\n(default).\n\nInstalling this package creates a new user called `nocpulse`, whose\nhomedir is `/var/lib/nocpulse`. Now ask for the `nocpulse-identity`\npublic key from the server and put it in\n`/var/lib/nocpulse/.ssh/authorized_keys`. Provided you've set up the\nserver properly, you should be all set now.\n\n### Errors and Miscellanea\n\n#### \"Local permission not set for action type configfiles.deploy\" (code 42)\n\nMake sure that you ran `rhn-actions-control`.\n\n#### 'Seeing' Server Commands\n\n osad -N -v -v -v -v\n\nUnregistering a Client\n----------------------\n\nOpen `/etc/yum/pluginconf.d/rhnplugin.conf` and change\n\n enabled = 1\n\nto\n\n enabled = 0\n\nYou may also want to clean up and reinstall RHN-related packages\n\n yum remove rhn*\n\nSources\n-------\n\n* [Registering Clients - Spacewalk Wiki](https://fedorahosted.org/spacewalk/wiki/RegisteringClients)\n\n\n\n\n" }, { "authorEmail": "nikhilanand@granular.ag", "authorName": "Nikhil Anand", "date": "2021-06-04T03:52:15Z", "id": "a0b139bf48db210c78d3aa8551d47212ca06c6ed", "shortId": "a0b139bf", "subject": "Reorg 2\n", "content": "Pre-Flight\n----------\n\n* The Spacewalk server is **spacewalk.example.com**\n * CentOS 5.5 i386\n* The client to be registered is **client.example.com**\n * CentOS 5.5 i386\n\nPreparing the Client for Registration\n-------------------------------------\n\n### Install the necessary packages\n\nOn CentOS 5\n\n rpm -Uvh http://spacewalk.redhat.com/yum/1.3/RHEL/5/i386/spacewalk-client-repo-1.3-1.el5.noarch.rpm \n yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin\n\n### Install the Spacewalk server certificate\n\nYou'll find the Spacewalk server certificate in the `/pub` folder:\n\n rpm -Uvh http://spacewalk.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm\n\nThis installs the certificate file (RHN-ORG-TRUSTED-SSL-CERT) in `/usr/share/rhn`\n\n### Edit `/etc/sysconfig/rhn/up2date`\n\nI only changed the values of `serverURL` and `sslCACert`:\n\n sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT\n serverURL=https://spacewalk.example.com/XMLRPC\n\n### Install EPEL\n\nYou'll get GPG key signing errors (like \"Public key for blah is not\ninstalled\") otherwise:\n\n rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm\n\nRegister the client to the Spacewalk server\n-------------------------------------------\n\nMake sure you have two things:\n\n1. A properly configured `/etc/sysconfig/rhn/up2date` file\n2. The correct activation key\n\nThen issue:\n\n rhnreg_ks --activationkey=1-d31a1b9465e576d5250de5da356b00a0\n\nSetting up Provisioning\n-----------------------\n\nInstall these packages:\n\n yum -y install rhncfg rhncfg-actions rhncfg-client osad\n\nEnable the provisioning action on the client:\n\n rhn-actions-control --enable-all\n\nRead the `man` page for more fine-tuning. Now make sure that `osad` and\n`rhnsd` are running:\n\n service osad start \n chkconfig --level 345 osad on \n service rhnsd start \n chkconfig --level 345 rhnsd on\n\nYou should be all set now.\n\nSetting up Monitoring\n---------------------\n\nInstall the `rhnmd` package and make sure it's running:\n\n yum -y install rhnmd \n service rhnmd start \n chkconfig --level 345 rhnmd on\n\nMake sure that the client firewall allows connections from port 4545\n(default).\n\nInstalling this package creates a new user called `nocpulse`, whose\nhomedir is `/var/lib/nocpulse`. Now ask for the `nocpulse-identity`\npublic key from the server and put it in\n`/var/lib/nocpulse/.ssh/authorized_keys`. Provided you've set up the\nserver properly, you should be all set now.\n\n### Errors and Miscellanea\n\n#### \"Local permission not set for action type configfiles.deploy\" (code 42)\n\nMake sure that you ran `rhn-actions-control`.\n\n#### 'Seeing' Server Commands\n\n osad -N -v -v -v -v\n\nUnregistering a Client\n----------------------\n\nOpen `/etc/yum/pluginconf.d/rhnplugin.conf` and change\n\n enabled = 1\n\nto\n\n enabled = 0\n\nYou may also want to clean up and reinstall RHN-related packages\n\n yum remove rhn*\n\nSources\n-------\n\n* [Registering Clients - Spacewalk Wiki](https://fedorahosted.org/spacewalk/wiki/RegisteringClients)\n\n\n\n\n" } ], "sizeInBytes": 3114, "source": "Pre-Flight\n----------\n\n* The Spacewalk server is **spacewalk.example.com**\n * CentOS 5.5 i386\n* The client to be registered is **client.example.com**\n * CentOS 5.5 i386\n\nPreparing the Client for Registration\n-------------------------------------\n\n### Install the necessary packages\n\nOn CentOS 5\n\n rpm -Uvh http://spacewalk.redhat.com/yum/1.3/RHEL/5/i386/spacewalk-client-repo-1.3-1.el5.noarch.rpm \n yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin\n\n### Install the Spacewalk server certificate\n\nYou'll find the Spacewalk server certificate in the `/pub` folder:\n\n rpm -Uvh http://spacewalk.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm\n\nThis installs the certificate file (RHN-ORG-TRUSTED-SSL-CERT) in `/usr/share/rhn`\n\n### Edit `/etc/sysconfig/rhn/up2date`\n\nI only changed the values of `serverURL` and `sslCACert`:\n\n sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT\n serverURL=https://spacewalk.example.com/XMLRPC\n\n### Install EPEL\n\nYou'll get GPG key signing errors (like \"Public key for blah is not\ninstalled\") otherwise:\n\n rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm\n\nRegister the client to the Spacewalk server\n-------------------------------------------\n\nMake sure you have two things:\n\n1. A properly configured `/etc/sysconfig/rhn/up2date` file\n2. The correct activation key\n\nThen issue:\n\n rhnreg_ks --activationkey=1-d31a1b9465e576d5250de5da356b00a0\n\nSetting up Provisioning\n-----------------------\n\nInstall these packages:\n\n yum -y install rhncfg rhncfg-actions rhncfg-client osad\n\nEnable the provisioning action on the client:\n\n rhn-actions-control --enable-all\n\nRead the `man` page for more fine-tuning. Now make sure that `osad` and\n`rhnsd` are running:\n\n service osad start \n chkconfig --level 345 osad on \n service rhnsd start \n chkconfig --level 345 rhnsd on\n\nYou should be all set now.\n\nSetting up Monitoring\n---------------------\n\nInstall the `rhnmd` package and make sure it's running:\n\n yum -y install rhnmd \n service rhnmd start \n chkconfig --level 345 rhnmd on\n\nMake sure that the client firewall allows connections from port 4545\n(default).\n\nInstalling this package creates a new user called `nocpulse`, whose\nhomedir is `/var/lib/nocpulse`. Now ask for the `nocpulse-identity`\npublic key from the server and put it in\n`/var/lib/nocpulse/.ssh/authorized_keys`. Provided you've set up the\nserver properly, you should be all set now.\n\n### Errors and Miscellanea\n\n#### \"Local permission not set for action type configfiles.deploy\" (code 42)\n\nMake sure that you ran `rhn-actions-control`.\n\n#### 'Seeing' Server Commands\n\n osad -N -v -v -v -v\n\nUnregistering a Client\n----------------------\n\nOpen `/etc/yum/pluginconf.d/rhnplugin.conf` and change\n\n enabled = 1\n\nto\n\n enabled = 0\n\nYou may also want to clean up and reinstall RHN-related packages\n\n yum remove rhn*\n\nSources\n-------\n\n* [Registering Clients - Spacewalk Wiki](https://fedorahosted.org/spacewalk/wiki/RegisteringClients)\n\n\n\n\n", "title": "Configuring Spacewalk Client", "untracked": false, "uri": "/Ancient_Sysadmin_Stuff/Configuring_Spacewalk_Client" }