Installation guide

Q:
A:
Q:
A:
# begin Red Hat management server registration
mkdir -p /usr/share/rhn/
wget http://satellite.example.com /pub/RHN-ORG-TRUSTED-SSL-CERT -O
/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
perl -npe 's/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g' -i /etc/sysconfig/rhn/*
rhnreg_ks --serverUrl=https://satellite.example.com/XMLRPC --
sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-
c8d01e2f23c6bbaedd0f6507e9ac079d
# end Red Hat m anagement server registration
Interpreting this in the order it was added in, this will:
Create a directory to house the custom SSL cert used by the Red Hat Satellite.
Fetch the SSL certificate to use during registration.
Search and replace the SSL certificate strings from the rhn-register configuration files, and
then register to the Red Hat Satellite using the SSL certificate and an activation key. Every
kickstart profile includes an activation key that assures that the system is assigned the correct
base and child channels, and gets the correct system entitlements. If it is a reprovisioning of an
existing system, the activation key will also ensure it is associated with the previous system
profile.
If the rhnreg_ks command fails, you might see errors like this in the ks-post.log log file:
ERROR: unable to read system id.
These errors will also occur if an attempt is made to perform an rhn_check and the system has
not registered to the Red Hat Satellite.
The best way to troubleshoot this is to view the kickstart file and copy and paste the four steps
directly at the command prompt after the kickstart has completed. This will produce error
messages that are more detailed to help locate the problem.
5.11. Kickst arts and Snippets
What is the directory structure for kickstart s?
The base path where the kickstart files are stored is /var/lib/rhn/kickstarts/. Within this
directory, raw kickstarts are in the upload subdirectory, and wizard-generated kickstarts are in
the wizard subdirectory:
Raw Kickstarts: /var/lib/rhn/kickstarts/upload/$profile_nam e--$org_id.cfg
Wizard Kickstarts: /var/lib/rhn/kickstarts/wizard/$profile_name--$org_id.cfg
What is the directory structure for Cobbler snippets?
Cobbler snippets are stored in /var/lib/rhn/kickstarts/snippets. Cobbler accesses
snippets using the symbolic link /var/lib/cobbler/snippets/spacewalk.
Snippets: /var/lib/rhn/kickstarts/snippets/$org_id/$snippet_nam e
Red Hat Satellite 5.6 Reference Guide
80