public class CobblerVirtualSystemCommand extends CobblerSystemCreateCommand
user, xmlRpcToken
Constructor and Description |
---|
CobblerVirtualSystemCommand(Server serverIn,
java.lang.String cobblerProfileName,
java.lang.String guestNameIn,
KickstartData ksData)
Constructor
|
CobblerVirtualSystemCommand(User userIn,
Server serverIn,
KickstartData ksDataIn,
java.lang.String mediaPathIn,
java.lang.String activationKeysIn,
java.lang.String guestNameIn)
Constructor
|
CobblerVirtualSystemCommand(User userIn,
Server serverIn,
java.lang.String nameIn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCobblerSystemRecordName()
Get the cobbler system record name for a system
|
protected org.cobbler.SystemRecord |
lookupExisting() |
protected void |
processNetworkInterfaces(org.cobbler.SystemRecord rec,
Server serverIn) |
protected void |
setupVirtAttributes(int memoryMB,
int diskSizeGb,
int vcpus,
java.lang.String diskPath)
Updates the cobbler virt attributes based on
params provided
|
ValidatorError |
store()
Store the System to cobbler
|
getCobblerSystemRecordName, getKickstartHost, getScheduledAction, getServer, setBridgeInfo, setKernelOptions, setKickstartHost, setNetworkInfo, setPostKernelOptions, setScheduledAction, store
getCobblerConnection, getCobblerConnection, invokeCobblerUpdate, invokeXMLRPC, invokeXMLRPC, makeCobblerFileName, makeCobblerName, makeCobblerName, makeCobblerName
public CobblerVirtualSystemCommand(Server serverIn, java.lang.String cobblerProfileName, java.lang.String guestNameIn, KickstartData ksData)
serverIn
- to create in cobblercobblerProfileName
- to useguestNameIn
- the guest name to createksData
- the kickstart data to associate
system withpublic CobblerVirtualSystemCommand(User userIn, Server serverIn, KickstartData ksDataIn, java.lang.String mediaPathIn, java.lang.String activationKeysIn, java.lang.String guestNameIn)
userIn
- who is requesting the syncserverIn
- profile we want to create in cobblerksDataIn
- profile to associate with with server.mediaPathIn
- mediaPath to override in the server profile.activationKeysIn
- to add to the system record. Used when the systemguestNameIn
- the guest name to create
re-registers to Spacewalkpublic java.lang.String getCobblerSystemRecordName()
getCobblerSystemRecordName
in class CobblerSystemCreateCommand
protected void processNetworkInterfaces(org.cobbler.SystemRecord rec, Server serverIn)
processNetworkInterfaces
in class CobblerSystemCreateCommand
protected org.cobbler.SystemRecord lookupExisting()
lookupExisting
in class CobblerSystemCreateCommand
protected void setupVirtAttributes(int memoryMB, int diskSizeGb, int vcpus, java.lang.String diskPath)
memoryMB
- the memory in MBdiskSizeGb
- the diskSize in GBvcpus
- the number of cpusdiskPath
- the disk path of the virt image.public ValidatorError store()
store
in class CobblerSystemCreateCommand