diff options
author | Nathan Straz <nstraz@redhat.com> | 2009-02-02 18:36:40 -0500 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2009-02-02 18:36:40 -0500 |
commit | 7e1247b426ae86d7c660a9ca87f76d43773670f6 (patch) | |
tree | b91f593102a185a998bec50255e52ef0022de948 /autoks-args.xsl | |
download | steeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.tar.gz steeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.tar.xz steeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.zip |
Import a sanitized version of Steel Toe, the provisioning system.
Diffstat (limited to 'autoks-args.xsl')
-rw-r--r-- | autoks-args.xsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autoks-args.xsl b/autoks-args.xsl new file mode 100644 index 0000000..d9eaa36 --- /dev/null +++ b/autoks-args.xsl @@ -0,0 +1,12 @@ +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + version="1.0"> + <xsl:param name="hostname"/> + <xsl:param name="treename"/> + <xsl:variable name="host" select="//host[@name=$hostname]"/> + <xsl:variable name="dist" select="//tree[@name=$treename and meta/arch=$host/arch]"/> + <xsl:include href="select-ks.xsl"/> + <xsl:output method="text" indent="no"/> + <xsl:template match="/" xml:space="preserve"><xsl:if test="$host/console">console=<xsl:value-of select="$host/console"/></xsl:if> ks=<xsl:value-of select="/steeltoe/config/kickstartbase"/>/<xsl:value-of select="$hostname"/>/ks.cfg ksdevice=<xsl:value-of select="$ks/ksdevice"/> <xsl:value-of select="$ks/ksparams"/> +</xsl:template> +</xsl:stylesheet> |