Sample Bootstrap Script
The
/var/www/html/pub/bootstrap/bootstrap.sh
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 de-
tails. 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-
#
#
...or...
#
#
(2) in a decentralized manner, executed on each client, via wget or curl:
#
wget -qO-
# https://
hostname
<
# | /bin/bash
#
...or...
#
curl -Sks
# https://
hostname
<
# | /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.
edited_name
<
>
/pub/bootstrap/bootstrap-
>
/pub/bootstrap/bootstrap-
>
Appendix A.
script generated by the RHN
.sh | ssh root@
<
edited_name
<
edited_name
<
client-hostname
>
.sh \
>
.sh \
>
/bin/bash
Need help?
Do you have a question about the NETWORK 4.1.0 - CLIENT and is the answer not in the manual?
Questions and answers