hudson.plugins.pxe
Class RedHatBootConfiguration
java.lang.Object
hudson.model.AbstractModelObject
hudson.plugins.pxe.BootConfiguration
hudson.plugins.pxe.IsoBasedBootConfiguration
hudson.plugins.pxe.LinuxBootConfiguration
hudson.plugins.pxe.RedHatBootConfiguration
- All Implemented Interfaces:
- hudson.model.Describable<BootConfiguration>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
- Direct Known Subclasses:
- CentOSBootConfiguration, OracleVMServerBootConfiguration
public class RedHatBootConfiguration
- extends LinuxBootConfiguration
RedHat/Fedora boot configuration.
- Author:
- Kohsuke Kawaguchi
|
Constructor Summary |
RedHatBootConfiguration(java.io.File iso,
java.lang.String password,
java.lang.String additionalPackages)
|
|
Method Summary |
void |
doKickstart(org.kohsuke.stapler.StaplerResponse rsp)
Serves the kickstart file |
protected java.lang.String |
getIdSeed()
Returns the string that becomes the seed of the BootConfiguration.getId(). |
java.lang.String |
getPackageList()
Package list formatted in the kickstart format. |
protected org.kohsuke.loopy.FileEntry |
getTftpIsoMountDir(org.kohsuke.loopy.iso9660.ISO9660FileSystem fs)
The root directory that we expose to TFTP. |
org.jvnet.hudson.tftpd.Data |
tftp(java.lang.String fileName)
Serves menu.txt by replacing variables. |
| Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
additionalPackages
public final java.lang.String additionalPackages
password
public final java.lang.String password
RedHatBootConfiguration
@DataBoundConstructor
public RedHatBootConfiguration(java.io.File iso,
java.lang.String password,
java.lang.String additionalPackages)
getIdSeed
protected java.lang.String getIdSeed()
- Description copied from class:
BootConfiguration
- Returns the string that becomes the seed of the
BootConfiguration.getId(). The ID
is in turn used for HTTP URLs and TFTP file names, so this method should
return something stable and not entirely illegible. But avoid unsafe characters like spaces, '/', etc.
A good example would be "OpenSolaris2008.11" or "Ubuntu8.10".
Several BootConfigurations can return the same ID seed, and BootConfiguration.getId() handles
those situations correctly.
- Specified by:
getIdSeed in class BootConfiguration
getTftpIsoMountDir
protected org.kohsuke.loopy.FileEntry getTftpIsoMountDir(org.kohsuke.loopy.iso9660.ISO9660FileSystem fs)
throws java.io.IOException
- The root directory that we expose to TFTP.
- Specified by:
getTftpIsoMountDir in class LinuxBootConfiguration
- Returns:
- null if no directory from ISO is mount to tftp.
- Throws:
java.io.IOException
tftp
public org.jvnet.hudson.tftpd.Data tftp(java.lang.String fileName)
throws java.io.IOException
- Serves menu.txt by replacing variables.
- Overrides:
tftp in class LinuxBootConfiguration
- Parameters:
fileName - Relative path within the space designated for this boot configuration. For example,
if the client requests "foo/bar/zot" and the ID of this configuration is "foo", this
parameter will be "bar/zot".
- Returns:
- null if no such file exists, as far as this plugin is concerned.
The PXE plugin will continue to search other
BootConfigurations to
see if anyone understands it.
- Throws:
java.io.IOException - If a problem occurs. The PXE plugin will abort the search and the download will fail.
doKickstart
public void doKickstart(org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
- Serves the kickstart file
- Throws:
java.io.IOException
getPackageList
public java.lang.String getPackageList()
- Package list formatted in the kickstart format.
Copyright © 2010. All Rights Reserved.