Red Hat SATELLITE 5.3.0 RELEASE NOTES Guía de instalación Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 30
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
Variables
11
httpd
mod_ssl
mod_python
If you want to create a web server profile, include the web server snippet in the %package section
of your Kickstart file. If you wanted a profile to be both a web server and a proxy server, you could
include both snippets in the package section. Then if you wanted to add another package to the
web server snippet, mod_perl for example, by updating the snippet all profiles that are using that
snippet would be updated as well.
You might want to perform certain actions in %post consistently across multiple kickstarts.
7.2. Variables
Templating allows for variables such as foo to be defined, and the value of those variables replaced
wherever $foo is seen in a kickstart file.
Variables are subject to a form of inheritance that allows them to be set at one level and overridden at
levels below them — the hierarchy is defined by Cobbler:
Kickstart tree (distro in cobbler) parameters come first
Kickstart Profile parameters override kickstart tree parameters
System parameters override Profile parameters
If a variable is defined at the system level, it will override the same variable defined at the Profile or
Distro levels. Likewise, if a variable is defined at the Profile level, it will override the same variable if
defined at the kickstart tree (distro) level.
Note
Note that kickstart tree (distro) variables cannot be defined for non-custom (automatically
generated) kickstart trees such as the ones you get when you do a satellite sync.
Refer to https://fedorahosted.org/cobbler/wiki/KickstartTemplating for more information.
7.3. Snippets
Snippets are similar to variables but can span many lines and can include variables in them. They can
be included in a kickstart profile by using the text $SNIPPET('snippet_name'). You may make a
snippet for a certain package list, one for a particular %post script, or for any text that would normally
be included in a kickstart file.
The main purpose of snippets are to be able to reuse pieces of code between multiple kickstart
templates and thus make each template easy to understand.
To manage snippets navigate to the Systems => Kickstart => Kickstart Snippets page. From here
you can see Default Snippets that may not be edited, but may be used by any organization. These
default snippets are provided to help make large tasks easier. For an explanation of common default
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 29 30

Comentarios a estos manuales

Sin comentarios