Is there an xmlrpc equivalent to the command line cobbler import? And can someone point me to where in the source code I can find xmlrpc info? (I know of the docs)
-Tom Hatch
Hmmm, seems this is being worked on right now, and that I will need to do this the hard way. Looks like "background_import" will be the way to do it in the future.
On Tue, Jul 14, 2009 at 12:46 PM, Thomas S Hatch thatch45@gmail.com wrote:
Is there an xmlrpc equivalent to the command line cobbler import? And can someone point me to where in the source code I can find xmlrpc info? (I know of the docs)
-Tom Hatch
On 07/14/2009 03:07 PM, Thomas S Hatch wrote:
Hmmm, seems this is being worked on right now, and that I will need to do this the hard way. Looks like "background_import" will be the way to do it in the future.
And it works presently :)
Mind you it takes a gazillion parameters, only a few of which the version for the website actually exposes:
remote.background_import(name, path, arch, breed, "", "", "", "", token) -> taskid
Logs to /var/log/cobbler/tasks/$taskid
And the usual task API stuff works as well for checking it, retrieving the log over XMLRPC, etc.
You should be able to play with it from a devel checkout now. Usual disclaimers about production usage apply!
--Michael
cobbler@lists.fedorahosted.org