Appendix A. Sample Bootstrap Script
The /var/www/html/pub/bootstrap/bootstrap.sh script generated by the RHN Satellite
Server installation program provides the ability to reconfigure client systems to access your RHN
Server easily. It is available to both RHN Satellite Server and RHN Proxy Server customers through
the RHN Bootstrap tool. After modifying the script for your particular use, it can be run on each client
machine.
Review the sample and its comments, beginning with a hash mark (#), for additional details. Follow the
Chapter 5, Using RHN Bootstrap
steps in
#!/bin/bash
echo "RHN Server Client bootstrap script v3.6"
# This file was autogenerated. Minor manual editing of this script (and
# possibly the client-config-overrides.txt file) may be necessary to
complete
# the bootstrap setup. Once customized, the bootstrap script can be
triggered
# in one of two ways (the first is preferred):
#
#
(1) centrally, from the RHN Server via ssh (i.e., from the
#
RHN Server):
#
cd /var/www/html/pub/bootstrap/
#
cat bootstrap-<edited_name>.sh | ssh root@<client-hostname> /bin/bash
#
#
...or...
#
#
(2) in a decentralized manner, executed on each client, via wget or
curl:
#
wget -qO-
# https://<hostname>/pub/bootstrap/bootstrap-<edited_name>.sh \
# | /bin/bash
#
...or...
#
curl -Sks
# https://<hostname>/pub/bootstrap/bootstrap-<edited_name>.sh \
# | /bin/bash
# SECURITY NOTE:
#
Use of these scripts via the two methods discussed is the most expedient
#
way to register machines to your RHN Server. Since "wget" is used
#
throughout the script to download various files, a "Man-in-the-middle"
#
attack is theoretically possible.
#
#
The actual registration process is performed securely via SSL, so the
risk
#
is minimized in a sense. This message merely serves as a warning.
#
Administrators need to appropriately weigh their concern against the
#
relative security of their internal network.
to prepare the script for use.
31
Need help?
Do you have a question about the NETWORK SATELLITE 5.3.0 - CLIENT and is the answer not in the manual?
Questions and answers