*/
public class KickstartDiscoveryComponent implements ResourceDiscoveryComponent {
private final Log log = LogFactory.getLog(KickstartDiscoveryComponent.class);
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context) {
SystemInfo sysinfo = context.getSystemInformation();
HashSet<DiscoveredResourceDetails> set = new HashSet<DiscoveredResourceDetails>();
//TODO This will really only work on rpm based systems.
if (OperatingSystemType.LINUX == sysinfo.getOperatingSystemType()) {
if (packageExists(sysinfo, "koan")) {
DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(),
"Kickstart", "Kickstart", "1", "Koan Kickstart Engine", null, null);
set.add(detail);