Kickstarting A Machine; Bare Metal - Red Hat NETWORK SATELLITE 5.3.0 Deployment Manual

Hide thumbs Also See for RED HAT NETWORK SATELLITE 5.3.0:
Table of Contents

Advertisement

Kickstarting a Machine

%post
echo $foo > /tmp/foo.txt
The templating engine would try to find a variable named $foo and would fail if foo did not exist
as a variable. There are a few ways to escape the $ symbol so it shows up as a bash variable. The
simplest is with a backslash:
%post
echo \$foo > /tmp/foo.txt
\$foo will be rendered as $foo within the kickstart.
A second method is to wrap the entire script in #raw ... #endraw :
%post
#raw
echo $foo > /tmp/foo.txt
#endraw
All %pre and %post scripts created using the wizard style kickstarts are wrapped with
#raw...#endraw by default. This can be toggled using the Template checkbox available when
editing a %post or %pre script.
The final method is simply by including #errorCatcher Echo in the first line of your kickstart. This
instructs the templating engine to ignore any variables that do not exist and print out the text as is.
This option is already included in the wizard style kickstarts, but you may want to include it in the raw
kickstarts you create yourself.
If you would like more information about Cheetah and the constructs that can be used for writing
kickstart templates, the Cheetah User's Guide should be very helpful:
http://www.cheetahtemplate.org/docs/users_guide_html/
5.8. Kickstarting a Machine

5.8.1. Bare Metal

Satellite provides three mechanisms by which you can provision bare metal machines — machines
that have no operating system or that have the wrong operating system installed:
1. Boot Anaconda-style operating system installation disk
2. PXE boot
3. Boot Cobbler boot disk
5.8.1.1. Booting from an Anaconda Style Installation Disk
Simply boot the selected system using an installation disc that matches your kickstart. For example, if
your kickstart was configured to use the ks-rhel-i386-server-5-u2 kickstart tree, you must boot
43

Advertisement

Table of Contents
loading

Table of Contents