Configuring an MTU RHN Proxy client during Kickstart
Include the following in the initial section of your Kickstart configuration file (Client example key used).
key fa0c1c86fa405c1d
Include the following in the %post section of your Kickstart
configuration file.
echo "Installing organizational CA certificate"
wget -q -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT \
http://punt.cecn.mtu.edu/kickstart/RHN-ORG-TRUSTED-SSL-CERT
perl -pi -e \
's,^serverURL=.*$,serverURL=https://rhn.mtu.edu/XMLRPC,; \
s,^sslCACert=.*$,sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT,' \
/etc/sysconfig/rhn/up2date
echo "Registering with RHN"
rhnreg_ks --force --activationkey=a01acbe8a38bcec7f184ba02fc000000
Substitute your actual activation key for the one shown.
Following registration and configuration, you can use up2date as
usual in your %post section (for example, running up2date -u,
installing additional packages, etc.).
For additions or corrections to
this page, email jamyles@mtu.edu.
|