Matt Hyclak wrote:
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
So this is for deploying ESX /hosts/ with Cobbler, not guests, right?
(Given VMware's OS is essentally a rebuild of old RHEL source and you
are importing it)
I think the one major thing we wanted to do in the future was extend the
existing VMware support in koan to also support ESX -- right now it does
VMware
server and workstation, so I suspect it wouldn't be much of a stretch.
Something you might be interested in looking at?
--Michael
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)
------------------------------------------------------------------------
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler