public class CobblerSystemCreateCommand extends CobblerCommand
user, xmlRpcToken| Constructor and Description |
|---|
CobblerSystemCreateCommand(Server serverIn,
java.lang.String cobblerProfileName,
KickstartData ksData)
Constructor to be used for a system outside tthe context
of actually kickstarting it to a specific profile.
|
CobblerSystemCreateCommand(User userIn,
Server serverIn,
KickstartData ksDataIn,
java.lang.String mediaPathIn,
java.lang.String activationKeysIn)
Constructor
|
CobblerSystemCreateCommand(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
|
static java.lang.String |
getCobblerSystemRecordName(Server serverIn)
Get the cobbler system record name for a system
|
java.lang.String |
getKickstartHost() |
protected Action |
getScheduledAction() |
Server |
getServer() |
protected org.cobbler.SystemRecord |
lookupExisting() |
protected void |
processNetworkInterfaces(org.cobbler.SystemRecord rec,
Server serverIn) |
void |
setBridgeInfo(boolean doBridge,
java.lang.String name,
java.util.List<java.lang.String> slaves,
java.lang.String options,
boolean isBridgeDhcpIn,
java.lang.String address,
java.lang.String netmask,
java.lang.String gateway) |
void |
setKernelOptions(java.lang.String kernelOptionsIn) |
void |
setKickstartHost(java.lang.String kickstartHostIn) |
void |
setNetworkInfo(boolean dhcp,
java.lang.String networkInterfaceIn,
boolean useIpv6GatewayIn,
java.lang.String ksDistroIn) |
void |
setPostKernelOptions(java.lang.String postKernelOptionsIn) |
void |
setScheduledAction(Action kickstartAction)
Set the scheduled action associated to this command.
|
ValidatorError |
store()
Store the System to cobbler
|
ValidatorError |
store(boolean saveCobblerId)
Store the System to cobbler
|
getCobblerConnection, getCobblerConnection, invokeCobblerUpdate, invokeXMLRPC, invokeXMLRPC, makeCobblerFileName, makeCobblerName, makeCobblerName, makeCobblerNamepublic CobblerSystemCreateCommand(User userIn, Server serverIn, KickstartData ksDataIn, java.lang.String mediaPathIn, java.lang.String activationKeysIn)
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 system
re-registers to Spacewalkpublic CobblerSystemCreateCommand(Server serverIn, java.lang.String cobblerProfileName, KickstartData ksData)
serverIn - profile we want to create in cobblercobblerProfileName - the name of the cobbler profile
to associate with systemksData - the kickstart data to associate the system withpublic void setNetworkInfo(boolean dhcp,
java.lang.String networkInterfaceIn,
boolean useIpv6GatewayIn,
java.lang.String ksDistroIn)
dhcp - true if the network type is dhcpnetworkInterfaceIn - The name of the network interfaceuseIpv6GatewayIn - whether to use ipv6 gatewayksDistroIn - distro to be provisionedpublic void setBridgeInfo(boolean doBridge,
java.lang.String name,
java.util.List<java.lang.String> slaves,
java.lang.String options,
boolean isBridgeDhcpIn,
java.lang.String address,
java.lang.String netmask,
java.lang.String gateway)
doBridge - boolean, whether or not to set up a bridge post-installname - string, name of the bridgeslaves - string array, nics to use as slavesoptions - string, bridge optionsisBridgeDhcpIn - boolean, if the bridge will use dhcp to obtain an ip addressaddress - string, ip address for the bridge (if isDhcp is false)netmask - string, netmask for the bridge (if isDhcp is false)gateway - string, gateway for the bridge (if isDhcp is false)protected org.cobbler.SystemRecord lookupExisting()
public ValidatorError store()
store in class CobblerCommandpublic ValidatorError store(boolean saveCobblerId)
saveCobblerId - false if CobblerVirtualSystemCommand is calling, true otherwisepublic java.lang.String getCobblerSystemRecordName()
public static java.lang.String getCobblerSystemRecordName(Server serverIn)
serverIn - the server to get the name fromprotected void processNetworkInterfaces(org.cobbler.SystemRecord rec,
Server serverIn)
public Server getServer()
public java.lang.String getKickstartHost()
public void setKickstartHost(java.lang.String kickstartHostIn)
kickstartHostIn - The kickstartHost to set.public void setKernelOptions(java.lang.String kernelOptionsIn)
kernelOptionsIn - The kernelOptions to set.public void setPostKernelOptions(java.lang.String postKernelOptionsIn)
postKernelOptionsIn - The postKernelOptions to set.public void setScheduledAction(Action kickstartAction)
kickstartAction - ks action associated to this commandprotected Action getScheduledAction()