The
/var/www/html/pub/bootstrap/bootstrap.sh
Server installation program and available to both Satellite and RHN Proxy Server customers through
the use of RHN Bootstrap provides the ability to reconfigure client systems to use the RHN Server
easily. After modifying 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 steps in Chapter 5 Using RHN Bootstrap to prepare the script for use.
#!/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
#
#
...or...
#
#
(2) in a decentalized manner, executed on each client, via wget or curl:
#
wget -qO- https:// hostname
#
...or...
#
curl -Sks https:// hostname
# 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.
#
Adminitrators need to appropriately weigh their concern against the
#
relative security of their internal network.
# PROVISIONING/KICKSTART NOTE:
#
If provisioning a client, ensure the proper CA SSL public certificate is
#
configured properly in the post section of your kickstart profiles (the
#
RHN Satellite or hosted web user interface).
# UP2DATE/RHN_REGISTER VERSIONING NOTE:
#
This script will not work with very old versions of up2date and
#
rhn_register.
echo
echo
echo "MINOR MANUAL EDITING OF THIS FILE MAY BE REQUIRED!"
echo
echo "If this bootstrap script was created during the initial installation"
echo "of an RHN Satellite, the ACTIVATION_KEYS, and ORG_GPG_KEY values will"
echo "probably *not* be set (see below). If this is the case, please do the"
Sample Bootstrap Script
script generated by the RHN Satellite
.sh | ssh root@ client-hostname
¡
/pub/bootstrap/bootstrap- edited_name
¡
/pub/bootstrap/bootstrap- edited_name
¡
Appendix A.
/bin/bash
¡
.sh | /bin/bash
¡
.sh | /bin/bash
¡
Need help?
Do you have a question about the NETWORK 3.7 - CLIENT and is the answer not in the manual?
Questions and answers