All,
This patch let us import an ESX 3.5u2 ISO into cobbler. I can never get
git-send to work or whatever, so I'm just including it here since it's only a
couple lines.
Michael said some work might be needed on koan. We haven't gotten that far
yet with our current deployment of cobbler, so if anyone else out there is
using ESX and Cobbler, let me know if there's anything that needs addressed.
Thanks,
Matt
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 05c7e7b..a5bc1d9 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -710,6 +710,8 @@ def guess_breed(kerneldir,path):
'Fedora/rpms' : "redhat",
'CentOS/RPMS' : "redhat",
'CentOS/rpms' : "redhat",
+ 'VMware/RPMS' : "redhat",
+ 'VMware/rpms' : "redhat",
'Packages' : "redhat",
'Server' : "redhat",
}
@@ -886,6 +888,9 @@ class RedHatImporter ( BaseImporter ) :
for x in [ "2AS", "2ES", "2WS", "2Desktop"
]:
if rpm.find(x) != -1:
return ("redhat", 2, 0)
+ for x in [ "vmw" ]:
+ if rpm.find(x) != -1:
+ return ("redhat", 3, 0)
# now get the flavor:
flavor = "redhat"
(END)
--
Matt Hyclak
Systems and Operations
Office of Information Technology
Ohio University
(740) 593-1222