summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
Commit message (Collapse)AuthorAgeFilesLines
* Further work on CLI modularization. All commands implemented now, except ↵Michael DeHaan2007-11-191-2/+2
| | | | | | | for old school compatibility translation for list/report. All commands will then need to be tested...
* Initial bits of code to make CLI modular, and use new object system for ↵Michael DeHaan2007-11-191-1/+1
| | | | defining new CLI commands.
* Expose function for getting all modules of a specific category.Michael DeHaan2007-11-141-4/+5
|
* Abstract out the modules system to allow for other types of modules, and to ↵Michael DeHaan2007-11-121-1/+15
| | | | also centralize configuration/loading/access some more.
* Various changes to allow for increased performance in the WebUI and in ↵Michael DeHaan2007-10-171-2/+5
| | | | | | saving state, plus a fix to import that keeps from creating extra yum repo entries for various distros.
* Work on an shelve-based external storage, for performance testing. SqliteMichael DeHaan2007-10-151-0/+3
| | | | is just as likely at this point.
* Ben Riggs patch to allow for reposyncs of explicit repos + tweakMichael DeHaan2007-09-061-2/+2
| | | | to repo object to ensure items get serialized as booleans.
* Further work on interchangeable backends. Rather than keeping the config fileroot2007-09-051-3/+4
| | | | | | | | | | | | | | format choice in settings (which is something of a Catch-22 situation), this may end up being a config file setting in /etc. Module loaders work and still default to yaml, though I've coded up a sample simple_json serializer that will be functional if users install simple-json. This is just demoware, JSON isn't replacing yaml and is (at least in this case) not as readable because of the way it escapes slashes. This is primarily to enable future work to integrate with other config file formats, such as possibly getting some of the system info from LDAP. Possibly.
* removed deprecated enchant function/module (just use SSH!), config file cleanup.root2007-09-051-12/+0
|
* Added "cobbler repo auto-add" feature which can discover all the reposMichael DeHaan2007-08-311-0/+35
| | | | | the cobbler server has configured in yum and set them up to be mirrored automagically.
* Added feature where a network install location can be given to do cobbler ↵Michael DeHaan2007-08-011-4/+9
| | | | | | imports without mirroring. This is explained in the manpage and online docs.
* Added a SNIPPET::foo feature which can do the equivalent of %include in ↵Michael DeHaan2007-07-271-1/+2
| | | | | | | | | kickstart without the need for a wget and http hosting. Snippets live in /var/lib/cobbler/snippets -- Cobbler ships with only one snippet now (as a demo), though users can create as many as they want.
* Added -v/--versionMichael DeHaan2007-07-261-0/+19
|
* Added kickstart validation code to cobbler + documentation.Michael DeHaan2007-07-261-0/+13
|
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-8/+8
| | | | | | | | | | | | | | | | | | | some rough edges (like listing the tree). cobbler profile add --name=profile2 --inherit=profile1 --otherparameters=... cobbler profile edit --name=profile2 --stillmoreparamters=... Data is interleaved for hashes, combined for arrays, and overriden for scalar values. This was heavily inspired by Will-It-Blend, and in this implementation it all blends. Implementation notes -- Updating a parent profile doesn't apply changes to the child objects until a sync, so this seems like a good upgrade for a future commit. Also, the children mapping that makes this possible needs some tweaks because they may load out of order, in which case "cobbler list" can't render a full tree. There are various approaches to deal with this and it should be a (relatively) easy change.
* Begining of i18n of cobbler. Tests pass, works with English. Need to testMichael DeHaan2007-05-291-1/+0
| | | | | | | translation function and run manual testing to ensure no functional errors in other places (such as import). cobbler_msg (strings file) has been removed.
* Various improvements to make the API more usable and cobbler a bitMichael DeHaan2007-04-191-4/+11
| | | | | | | | more efficient. Make both the Config and BootAPI objects Borgs, to prevent duplicate configuration records. Also do not implicitly serialize configuration objects unless the with_copy parameter is used.
* Implemented trigger support for tying in with other software.Michael DeHaan2007-04-161-1/+1
|
* Most of these diffs come from directory reorg/cleanup, though the main ↵Michael DeHaan2007-03-191-4/+3
| | | | feature here is the start of a better --import command that creates significantly shorter paths and can work more reliably on mounted DVD images (losetup or otherwise). Detection of kickstarts based on paths needs to be augmented by additional means for this to really work. However, changes going in here (and still more to come) result in cleaner names for imported profiles, and substantially shorter kernel option command lines, which is needed to keep under the 255 limit. There is also some work here going in to template out all of the files for PXE, reducing the amount of code in action_sync and also making PXE setups much more customizable (menu choices, titles, random parameters, ipappend 2, etc) without patching the source. "tree" on import is also attached now to the distro, not the profile. So, whew, that's a lot.
* Working on adding pxemenu support.Michael DeHaan2007-02-141-0/+3
|
* Remove variable/attribute confusion.Michael DeHaan2007-02-121-2/+2
|
* Minor fixes to sync flag stuff.Michael DeHaan2007-02-021-2/+2
|
* Work towards implementation of optional integrated "light" sync support, ↵Michael DeHaan2007-02-011-5/+7
| | | | | | which is enabled by default in /var/lib/cobbler/settings. Users of the API will need to use the with_copy=True and with_delete=True parameters to initiate this behavior. As mentioned in the previous commit, sync() still needs to be run at least once prior to any add commands using this feature.
* Add kickstart pre-signaling to indicate starts in addition to stops.mdehaan@mdehaan.rdu.redhat.com2007-01-031-0/+1
|
* Add scaffolding for status report function/module.mdehaan@mdehaan.rdu.redhat.com2007-01-031-5/+6
|
* Allow "cobbler enchant" commands to also remotely install Xen on systems in ↵Michael DeHaan2006-12-221-2/+2
| | | | | | | the same way the command already supported destructive re-provisioning. Syntax is "cobbler enchant --address=foo --profile=foo --virt=yes" or "--system=foo" can replace "--profile" if you want to set the Xen mac address and so forth.
* Preliminary support for repo mirroring.Michael DeHaan2006-12-121-3/+21
|
* Serialize changes during imports, since NFS traversal is very slow.Michael DeHaan2006-10-181-1/+1
|
* Working on removing the dependancy on pexpectMichael DeHaan2006-10-171-4/+6
|
* Trailing whitespace.Michael DeHaan2006-10-161-1/+1
|
* Lots of work on importing rsync mirrors, including preliminary code to guessMichael DeHaan2006-10-131-2/+2
| | | | kickstart files and assign them for distributions that we know how to minimally kickstart.
* Import feature added (usable for things like /mnt/redhat)Michael DeHaan2006-10-131-2/+4
|
* Initial code behind an import feature for directory trees, i.e. to transform ↵Michael DeHaan2006-10-121-3/+4
| | | | | | something like /mnt/redhat (containing a lot of OS builds with trees) into distributions and profiles directly.
* Development error temporarily removed enchant from the CLI accessible ↵Michael DeHaan2006-10-121-2/+2
| | | | options. Putting it back and making it a part of the system subcommands to make it more consistant (parsing is better too this way).
* Adding API stub for unfinished methodMichael DeHaan2006-10-111-0/+7
|
* Commiting the (working) enchant feature and associated changes to enableMichael DeHaan2006-09-291-3/+2
| | | | | it. Some error handling is needed but it's functional. See NEWS and manpage for documentation on enchant.
* - Interim checkin while working on "enchant" featureMichael DeHaan2006-09-281-65/+73
| | | | - Fixed changelogs to include user/email
* Remove api_call indirection and exception handling layer since tests had ↵Michael DeHaan2006-05-121-32/+15
| | | | already been modified to use failUnlessRaises.
* Added licensing and RH copyright. Pychecker (once again). Fixed one unit ↵Michael DeHaan2006-05-111-2/+10
| | | | test where I changed a command line syntax.
* Simplified the command line, made a better 'list' function, some string and ↵Michael DeHaan2006-05-091-3/+11
| | | | | | exception cleanup.
* Adding exception handling to remove the problem of propogating error codes ↵Michael DeHaan2006-05-081-20/+33
| | | | all the way up the stack. Still not quite super-consistant, but getting there. Util functions still return true/false since they just ask questions, but API functions will throw errors to ensure they are being dealt with. Main CLI class needs to take advantage of this fact and become simpler. Tests are already modified to detect new exceptions with one exception :)
* Interim checkin while straightening out exceptions. The last_error bit ↵Michael DeHaan2006-05-081-6/+0
| | | | | | | reminded me of the thing I hated most about Microsoft SDK/DDK programming (that being, last_error and inconsistant error handling), so it had to go.
* More pychecker. More comments.Michael DeHaan2006-05-081-30/+11
|
* PyChecker.Michael DeHaan2006-05-081-4/+0
|
* Unit tests pass again.Michael DeHaan2006-05-081-19/+18
|
* Interim commit during refactoring. Pretty broken as a result of some ↵Michael DeHaan2006-05-051-6/+30
| | | | cleanup but it will get straightened out very soon. The main thing I'm doing here is to remove backreferences from the object tree and make the API simpler, so that folks using the API screw up less. This means making the CLI code simpler as well. The serializer has also been overhauled so it's not as much bolted on, although I have some fixing to do to make it work entirely correctly. Wanted to check all of this in case someone decided to patch something else, making diffing really complex in the interim. I'd recommend not patching anything else to this code as I'm not close to done, really.
* Interim commitMichael DeHaan2006-05-051-7/+9
|
* Interim refactoring commitMichael DeHaan2006-05-051-31/+18
|
* Interim commit while refactoring. This breaks lots of stuff.Michael DeHaan2006-05-051-527/+21
|
* Make /etc/cobbler.conf be packaged instead of being created, proper handling ↵Michael DeHaan2006-05-051-3/+9
| | | | of parse errors on config files, tweaking unit tests tempfile stuff since sync() test is currently broken by the tempfile changes (why??)