public abstract class CobblerProfileCommand extends CobblerCommand
Modifier and Type | Field and Description |
---|---|
protected KickstartData |
ksData |
user, xmlRpcToken
Constructor and Description |
---|
CobblerProfileCommand(KickstartData ksDataIn)
Call this if you want to use the taskomatic_user.
|
CobblerProfileCommand(KickstartData ksDataIn,
User userIn) |
Modifier and Type | Method and Description |
---|---|
static org.cobbler.Distro |
getCobblerDistroForVirtType(KickstartableTree tree,
KickstartVirtualizationType virtType,
User user)
Get the cobbler distro for a particular tree and virt type combo
selects the xen or non-xen cobbler distro depending
upon the virt type
|
org.cobbler.Distro |
getDistroForKickstart()
Get the cobbler distro for a particular kickstart file
selects the xen or non-xen cobbler distro depending
upon the virt type
|
void |
setKernelOptions(java.lang.String kernelOptionsIn) |
void |
setPostKernelOptions(java.lang.String postKernelOptionsIn) |
protected void |
updateCobblerFields(org.cobbler.Profile profile) |
void |
validateUrl(org.cobbler.Profile profile)
Validate url in kickstart and kickstart meta.
|
getCobblerConnection, getCobblerConnection, invokeCobblerUpdate, invokeXMLRPC, invokeXMLRPC, makeCobblerFileName, makeCobblerName, makeCobblerName, makeCobblerName, store
protected KickstartData ksData
public CobblerProfileCommand(KickstartData ksDataIn, User userIn)
ksDataIn
- - KickstartData to syncuserIn
- - user wanting to sync with cobblerpublic CobblerProfileCommand(KickstartData ksDataIn)
ksDataIn
- - KickstartData to syncprotected void updateCobblerFields(org.cobbler.Profile profile)
public void validateUrl(org.cobbler.Profile profile)
profile
- The profile to checkpublic org.cobbler.Distro getDistroForKickstart()
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 static org.cobbler.Distro getCobblerDistroForVirtType(KickstartableTree tree, KickstartVirtualizationType virtType, User user)
tree
- the kickstart treevirtType
- the virt typeuser
- the user doing the query