Red Hat NETWORK SATELLITE 5.3.0 Deployment Manual page 50

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

Advertisement

Chapter 5. Provisioning with Satellite
Figure 5.3. Kickstart Snippets
For more information, refer to https://fedorahosted.org/cobbler/wiki/KickstartSnippets.
5.7.3.1. Default Snippets
There are many snippets that ship by default and may be used in kickstarts written on or uploaded to
the Satellite server. You may want to look at a template from a wizard style kickstart located in /var/
lib/rhn/kickstarts/wizard/ and see what default snippets are used and how they are used.
One of the most useful ones is redhat_register.
The redhat_register snippet can be used to register machines to a Satellite server as
part of the kickstart. It uses a special variable called redhat_management_key to register it
to the server. Simply set that variable at either the system, profile, or distro level and then add
$SNIPPET('redhat_register') to a %post section of your kickstart. Any wizard style kickstarts
that are generated by the Satellite server will already include this snippet in it's pre-made %post
section.
5.7.3.2. Escaping Special Characeters
Since the $ and # characters are used during templating for specifying variables and control flow, you
should not use these characters within scripts without escaping them.
So for example, if you were writing a bash script in a %post section:
42

Advertisement

Table of Contents
loading

Table of Contents