public class KickstartManager extends BaseManager
Constructor and Description |
---|
KickstartManager() |
Modifier and Type | Method and Description |
---|---|
KickstartData |
findProfileForIpAddress(IpAddress clientIpIn,
Org orgIn)
Finds the profile which is a best fit.
|
KickstartData |
findProfileForServersNetwork(Server server)
Find a kickstart profile for a given server by searching by IP addresses
|
static KickstartManager |
getInstance()
Returns an instance of kickstart manager
|
DataResult<SystemOverview> |
kickstartableSystemsInSsm(User user)
returns a list of systems in SSM
that are kickstartable
|
java.util.List<KickstartIpRange> |
listIpRanges(User user)
returns a list of IP ranges accessible to the
user
|
java.util.List<KickstartableTree> |
removeInvalid(java.util.List<KickstartableTree> trees)
Accept a list of trees and only return those
that are valid, as in they pass the isValid method
|
java.lang.String |
renderKickstart(KickstartData data)
Render the kickstart using cobbler and return the contents
|
java.lang.String |
renderKickstart(java.lang.String url)
Render the kickstart using cobbler and return the contents
|
java.lang.String |
renderKickstart(java.lang.String host,
KickstartData data)
Render the kickstart using cobbler and return the contents with the Cobbler host
search/replaced.
|
java.lang.String |
renderKickstart(java.lang.String host,
java.lang.String url)
Render the kickstart using cobbler and return the contents with the Cobbler host
search/replaced.
|
void |
validateKickstartFile(KickstartData ksdata)
Simple method to validate a generated kickstart
|
makeDataResult, makeDataResult, makeDataResult, makeDataResult, makeDataResultNoPagination, makeDataResultNoPagination, processListControl, processPageControl
public static KickstartManager getInstance()
public java.lang.String renderKickstart(java.lang.String host, KickstartData data)
host
- the host to force into the ks file. searches and replaces all
instances of the Cobbler Host with whatever you pass in. Use with Proxies.data
- the KickstartDatapublic java.lang.String renderKickstart(java.lang.String host, java.lang.String url)
host
- the host to force into the ks file. searches and replaces all
instances of the Cobbler Host with whatever you pass in. Use with Proxies.url
- The url to fetchpublic java.lang.String renderKickstart(KickstartData data)
data
- the KickstartDatapublic java.lang.String renderKickstart(java.lang.String url)
url
- the url to fetchpublic void validateKickstartFile(KickstartData ksdata)
ksdata
- the kickstart data file whose ks
templates will be checkedValidatorException
- on parse error or ISE..public DataResult<SystemOverview> kickstartableSystemsInSsm(User user)
user
- the user for access infopublic java.util.List<KickstartIpRange> listIpRanges(User user)
user
- the current user needed for org informationpublic KickstartData findProfileForServersNetwork(Server server)
server
- the server to find the ksdata forpublic KickstartData findProfileForIpAddress(IpAddress clientIpIn, Org orgIn)
clientIpIn
- IpAddress to search ip ranges fororgIn
- Org coming in from the urlpublic java.util.List<KickstartableTree> removeInvalid(java.util.List<KickstartableTree> trees)
trees
- the input list