On Fri, Nov 4, 2011 at 12:47, Gerhardus Geldenhuis
<gerhardus.geldenhuis@gmail.com> wrote:
Hi
As of version 2.0, BootAPI is not the recommended way of interfacing with Cobbler. It directly modifies the config store in a way that may not be safe. Furthermore the modifications made will not be visible to cobblerd. The CobblerXmlrpc interface should instead be used until at least version 2.2.
Is this still true? Or can we use BootAPI now?
This is still true.
I'm not sure personally. I want to say I saw errors that I could deal with when using the xmlrpc, I just don't recall the format. I just pulled a small snippet that is the only error checking I did against the xmlrpc. here it is:
try:
cobbler.modify_system(sysid, 'modify_interface', int, token)
except xmlrpclib.Fault, e:
print "system %s errored trying to add %s interface" % (system, interface)
print e
not great, but hopefully it helps.
One last novice question, does the api only run on the same server as cobbler or can I use the api to access a remote cobbler server?
The API should be remotely accessible.