summaryrefslogtreecommitdiffstats
path: root/cobbler/item.py
Commit message (Collapse)AuthorAgeFilesLines
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-9/+28
| | | | | | | | | | | | | | | | | | | 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.
* random FIXME cleanupMichael DeHaan2007-06-121-4/+0
|
* release bumpMichael DeHaan2007-06-121-5/+13
|
* Generalizes tree listing to allow for inheritance and arbitrary nestingMichael DeHaan2007-06-121-0/+2
|
* Add conceptual_parent concept, to allow tree retrieval of objects that may haveMichael DeHaan2007-06-121-0/+16
| | | | | | | | | intermediate subobjects of the same type in the way. For instance, the conceptual parent of a subprofile is not the parent profile, but is the distro object. Also fixing a bug in is_pxe_supported()
* Add code for generation of object downlinks during config parsing.Michael DeHaan2007-06-121-0/+29
| | | | | | Reasonably efficient, and allows for faster display/searching, with the ability to do arbitrary nesting for config display when we have inheritable profiles implemented.
* Generalizes object blending and the concept of parentage to allow for later ↵Michael DeHaan2007-06-111-0/+6
| | | | | | | | | | | | | support of inheritance hierarchies, as well as making more data available to koan and the kickstart templating engine. With this change, any variable in the tree (anywhere), is now accessible via Cheetah -- and the same goes for koan XMLRPC. Unit tests pass and looks okay on the outside, though this still warrants extended testing to verify no unintended behaviors have changed.
* Begining of i18n of cobbler. Tests pass, works with English. Need to testMichael DeHaan2007-05-291-1/+2
| | | | | | | translation function and run manual testing to ensure no functional errors in other places (such as import). cobbler_msg (strings file) has been removed.
* Starting to add i18n to cobbler using rhplMichael DeHaan2007-05-251-0/+1
|
* This commit overhauls the main cobbler CLI module and adds support forMichael DeHaan2007-04-201-0/+11
| | | | | | | | | | | | 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.
* Kickstart metadata items are seperated by whitespace, not commas.Michael DeHaan2007-02-281-1/+1
|
* sseago's patch to set_kernel_options, plus some additional error handling ↵Michael DeHaan2007-02-271-3/+3
| | | | | | around kernel options processing. Plus some manpage/NEWS updates.
* Converting storage for template parameters, kernel options, and repo lists ↵Michael DeHaan2007-02-141-17/+18
| | | | | | | (basically anything that's not really a string or a number) to a list or hash, as appropriate. This will allow the cobbler API to accept list/hash input as appropriate in addition to strings, allowing for more advanced use of the templating engine. This also extends more power to the user to add their own entries in /var/lib/cobbler files for ksmeta, as opposed to having to enter in --ksmeta options on the command line, which previously did not tolerate newlines. All of this is backwards compatible with the old format (both should load fine). Files will convert over to the new format once any add commands are run.
* Kickstart metadata variable can't be None.Michael DeHaan2007-02-121-0/+2
|
* Removing Cheetah to simplify deps, also don't delete the localmirror on sync ↵Michael DeHaan2006-10-171-1/+1
| | | | (that's bad!).
* Import feature added (usable for things like /mnt/redhat)Michael DeHaan2006-10-131-2/+2
|
* Added a basic locking system to avoid multiple "sync" operations happening ↵Michael DeHaan2006-10-121-0/+10
| | | | at the same time -- not a huge risk -- but it ought to be guarded against.
* Added templating support through new --ks_meta option which works like ↵Michael DeHaan2006-07-121-0/+14
| | | | --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.
* PyChecker.Michael DeHaan2006-05-081-7/+2
|
* Unit tests pass again.Michael DeHaan2006-05-081-3/+5
|
* Interim commitMichael DeHaan2006-05-051-1/+4
|
* Interim refactoring commitMichael DeHaan2006-05-051-0/+8
|
* Interim commit while refactoring. This breaks lots of stuff.Michael DeHaan2006-05-051-0/+37