summaryrefslogtreecommitdiffstats
path: root/cobbler/collection.py
Commit message (Collapse)AuthorAgeFilesLines
* Two things -- (A) remove rhpl dep as we aren't using it and we want to useMichael DeHaan2008-04-091-1/+1
| | | | | more standard xlat for other distros potentially, (B) fix the kerb module some more.
* remove FIXMEs as things have been tested and work WRT the duplication ↵Michael DeHaan2008-04-041-11/+1
| | | | prevention feature.
* Working on adding checks for duplicate names/ips/macs to cobblerroot2008-04-041-4/+65
|
* Recursive deletes are now possible with --recursive. Web UI still needs to ↵Michael DeHaan2008-01-311-0/+1
| | | | take advantage of this.
* Add rename and copy functionality to the base API, the remote interface, and ↵Michael DeHaan2008-01-221-0/+41
| | | | make the WebUI use it for much smarter renames and copies.
* Rename some templates, remove proxy logic that is not necc. for new performanceMichael DeHaan2007-12-201-28/+2
| | | | plans, remove watcher.py reference
* The repo management code generates some things on a per-profile basis whichMichael DeHaan2007-12-181-2/+28
| | | | | should be generated on a per-system basis to support --server-override correctly. This is a fix.
* Performance tweaking and benchmarks.Michael DeHaan2007-12-121-16/+30
|
* API and web svc now use seperate logging, and logging is greatly enhanced ↵Michael DeHaan2007-12-101-0/+5
| | | | and more usable.
* Applying Ben Riggs patch to add API flag to disable triggers when addingMichael DeHaan2007-11-161-3/+5
| | | | objects.
* Service restarting has been abstracted out of the action_sync code, and is ↵Michael DeHaan2007-10-191-5/+1
| | | | | | | | | | now a trigger. This commit adds pre/post sync triggers, for scripting of arbitrary actions. The idea is that a cobbler user can now modify the restart-services script to rsync DHCP configurations to a remote box and instead restart them there, for hosting DHCP on a different box. Or do anything else that might be required. The restart-services trigger will ship in the cobbler RPM. Users can modify it at will and it is marked as config(noreplace) so upgrades will not affect it.
* Various changes to allow for increased performance in the WebUI and in ↵Michael DeHaan2007-10-171-6/+0
| | | | | | 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-1/+3
| | | | is just as likely at this point.
* Storing NICs in a hash for easier access + some refactoring + modifications ↵Michael DeHaan2007-10-091-63/+2
| | | | to the find function.
* Once again, all tests pass, however a lot more manual testing in regards to ↵Michael DeHaan2007-10-081-2/+28
| | | | | | | | multiple NIC support is still required. Checking kickstarts and the koan modifications are also still to go. Code in item_system.py is due for cleanup, especially in from_datastruct, where it tries to load the older configurations implicitly.
* Further work on interchangeable backends. Rather than keeping the config fileroot2007-09-051-0/+2
| | | | | | | | | | | | | | 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.
* Added "cobbler repo auto-add" feature which can discover all the reposMichael DeHaan2007-08-311-0/+3
| | | | | the cobbler server has configured in yum and set them up to be mirrored automagically.
* Some code to fix a reference issue that allowed for hash value propogation ↵Michael DeHaan2007-08-231-0/+4
| | | | | | | up the graph, in ksmeta and possibly kopts. Also added some code to check to make sure an object of the wrong type never gets added to the wrong collection.
* Adding zeroconf to changelogMichael DeHaan2007-08-201-0/+2
|
* Ben Riggs patch to allow find to take arbitrary variables plus a reworkingMichael DeHaan2007-08-151-10/+64
| | | | | | of find (mpd) to add some error checking, list returns, and other semi-useful stuff. Plus tests and an optomization to allow name=foo as the only parameter to be just as fast as before.
* Remove stray debugMichael DeHaan2007-06-131-1/+0
|
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Add code for generation of object downlinks during config parsing.Michael DeHaan2007-06-121-8/+14
| | | | | | Reasonably efficient, and allows for faster display/searching, with the ability to do arbitrary nesting for config display when we have inheritable profiles implemented.
* This is Adam Rosenwald's patch for seperating triggers into pre and postMichael DeHaan2007-06-061-4/+20
| | | | triggers, plus my modifications to make them deal with return codes.
* Fix bug when a report on a specific object is requested using the wrongMichael DeHaan2007-05-301-1/+1
| | | | case.
* Begining of i18n of cobbler. Tests pass, works with English. Need to testMichael DeHaan2007-05-291-5/+6
| | | | | | | translation function and run manual testing to ensure no functional errors in other places (such as import). cobbler_msg (strings file) has been removed.
* This commit overhauls the main cobbler CLI module and adds support forMichael DeHaan2007-04-201-1/+0
| | | | | | | | | | | | object renaming, copying, and editing -- previously only addition and removal were supported. This frees uses (hopefully) from the need to hack YAML and risk damaging their configurations by rendering the config unparseable. It also makes "cobbler list" print out a simple tree representation that shows the association between objects. This also relaxes the requirements for what constitutes a kernel and initrd filename, just in case they are named something different. They still have to exist.
* Various improvements to make the API more usable and cobbler a bitMichael DeHaan2007-04-191-2/+3
| | | | | | | | 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-2/+12
|
* Ongoing work for 0.4.4 -- misc tweaks/fixes, and continuation on the ↵Michael DeHaan2007-03-221-3/+4
| | | | | | | kernel-parameters-get-shorter effort as well as templating and import features. Plus some random things, like case insensitive paths and some additional argument checking.
* Work towards implementation of optional integrated "light" sync support, ↵Michael DeHaan2007-02-011-11/+12
| | | | | | 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.
* Skeleton code (currently does exactly what it used to do) for cobbler ↵Michael DeHaan2007-02-011-1/+19
| | | | | | add/remove commands that do not require running "sync". Sync will only be required when the kickstart files behind systems change, or when YAML is hand edited. This should vastly improve cobbler for use in larger systems, especially when used as a library when all control paths are known. Sync will still be required once for an initial install (just once), or whenever kickstart or YAML files are edited. It can also be run again at any time for a sanity check -- sync isn't going away.
* Sort in a Python 2.3 compatible way.Michael DeHaan2006-10-111-1/+2
|
* Fixed printoutMichael DeHaan2006-07-131-1/+1
|
* Added templating support through new --ks_meta option which works like ↵Michael DeHaan2006-07-121-1/+7
| | | | --kopts. The parameter is a space delimited list of key=value pairs, which allows the variables entered to be evaluated through Cheetah. Thus kickstarts are now Cheetah templates. All templating errors are ignored so usage of a $ in a template is still legal where it doesn't reference a variable. Error ignoring should be finer grained and this does need some tests. Currently this only works for kickstarts on filesystems, and I'm not sure what the behavior for http and nfs should be. Anyhow, fairly useful stuff.
* Added licensing and RH copyright. Pychecker (once again). Fixed one unit ↵Michael DeHaan2006-05-111-0/+8
| | | | test where I changed a command line syntax.
* Simplified the command line, made a better 'list' function, some string and ↵Michael DeHaan2006-05-091-2/+5
| | | | | | exception cleanup.
* Adding exception handling to remove the problem of propogating error codes ↵Michael DeHaan2006-05-081-2/+2
| | | | 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-5/+3
| | | | | | | 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-18/+1
|
* PyChecker.Michael DeHaan2006-05-081-3/+15
|
* Unit tests pass again.Michael DeHaan2006-05-081-20/+21
|
* Interim commit during refactoring. Pretty broken as a result of some ↵Michael DeHaan2006-05-051-5/+28
| | | | 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/+19
|
* Interim refactoring commitMichael DeHaan2006-05-051-20/+5
|
* Interim commit while refactoring. This breaks lots of stuff.Michael DeHaan2006-05-051-0/+89