summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug related to hash evaluation, bump release for testing branchMichael DeHaan2007-11-151-0/+3
|
* (A) add/tweak testcase for blender cache code, (B) modify htaccess file to ↵Michael DeHaan2007-11-141-1/+1
| | | | | | only authenticate the webui, not the other cgi's.
* Disable the blender cache as it's running afoul of the sync code, mixing up ↵Michael DeHaan2007-11-141-2/+4
| | | | | | profiles/systems data incorrectly when blending objects for cobbler/sync.
* Abstract out the modules system to allow for other types of modules, and to ↵Michael DeHaan2007-11-121-0/+2
| | | | also centralize configuration/loading/access some more.
* Fix an obscure blending corner case that was confusing koan.Michael DeHaan2007-11-061-1/+5
|
* Optimize sync performance by caching the results of calls to "blender".Michael DeHaan2007-11-051-1/+9
|
* Code to wire up the new --server-override to the sync code. This leaves off ↵Michael DeHaan2007-11-011-1/+1
| | | | | | | | some of the repo management, which will not work with --server-override completely in all cases (depending on DNS) until we do some extra post magic in our action_sync stanza generaton. Ow, my brain hurts just thinking about other people who have to read that explanation :)
* Add in templating for $hostname and other variables for first interface, to ↵Michael DeHaan2007-10-311-1/+1
| | | | | | be backwards compatible with older templates.
* Some more work on removing the API refs in util...Michael DeHaan2007-10-231-3/+3
|
* Remove a circular import between the serializer and the API that was ↵Michael DeHaan2007-10-231-5/+5
| | | | confusing Virt-Factory.
* Service restarting has been abstracted out of the action_sync code, and is ↵Michael DeHaan2007-10-191-0/+28
| | | | | | | | | | 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.
* Remove some dead code and update a few FIXMEs that no longer apply.Michael DeHaan2007-10-101-11/+5
|
* In templating, show the 1st mac as "$mac_address_intf1" not ↵Michael DeHaan2007-10-091-1/+1
| | | | | | "$mac_addressintf1". And so on for other vars and other interfaces.
* The stringification problem appears to lie in the serializer, so explicitly ↵Michael DeHaan2007-10-091-1/+1
| | | | | | use strings in the YAML to pacify the XMLRPC bits. Plus, this is more readable.
* More work to ensure interfaces remain strings, even though they look a lot ↵Michael DeHaan2007-10-091-4/+2
| | | | like numbers presently...
* In XMLRPC, dicts must have string keys, so changing NIC storage to be ↵Michael DeHaan2007-10-091-0/+1
| | | | XMLRPC-friendly.
* A few bugfixes. Still working on multiple NICs.Michael DeHaan2007-10-091-11/+16
|
* Storing NICs in a hash for easier access + some refactoring + modifications ↵Michael DeHaan2007-10-091-2/+2
| | | | to the find function.
* More work on the new multi-NIC code. Largely working at this point, sync hasMichael DeHaan2007-10-081-6/+7
| | | | | been updated, and backwards compatibility (upgrades) have been tested. Koan still has to be modified and tested, and templating still needs to be tested.
* In process of making NICs seperate data structures in cobbler, which ↵Michael DeHaan2007-10-081-3/+18
| | | | | | | requires seperate accessors and templating. This is all to allow multiple NICs in koan. Stil needs changes in sync code and possibly other places.
* Repos are now added to the WebUI.Michael DeHaan2007-09-141-0/+3
|
* Add additional fields to WebUI for profile editing/viewing.Michael DeHaan2007-09-121-0/+2
|
* Adding additional exception handling and logging to WebUI.Michael DeHaan2007-09-121-4/+16
|
* Fix bug with upward/downward propogation of array content when using ↵Michael DeHaan2007-08-271-0/+2
| | | | inheritance.
* Some code to fix a reference issue that allowed for hash value propogation ↵Michael DeHaan2007-08-231-2/+5
| | | | | | | 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.
* Add kssendmac to kernel options when there is roomMichael DeHaan2007-07-231-1/+7
|
* Adding kickstart serving CGI script.Michael DeHaan2007-07-091-1/+1
| | | | Also fixing one error in the utils module.
* Add logging for cobblerd + logrotate script.Michael DeHaan2007-07-021-0/+13
| | | | Bumped revision to 0.5.1.
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-4/+30
| | | | | | | | | | | | | | | | | | | 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.
* Generalizes object blending and the concept of parentage to allow for later ↵Michael DeHaan2007-06-111-0/+78
| | | | | | | | | | | | | 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.
* WIP: Allow system names to be anything, and gather mac address and IP fromMichael DeHaan2007-05-301-11/+19
| | | | | | either the inferred sytem name or the values given to --ip-address (--ip) or --mac-address (--mac). Change the action code to use this, and not create PXE entries when such info is not available.
* Begining of i18n of cobbler. Tests pass, works with English. Need to testMichael DeHaan2007-05-291-1/+1
| | | | | | | 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/+2
|
* This commit overhauls the main cobbler CLI module and adds support forMichael DeHaan2007-04-201-10/+12
| | | | | | | | | | | | 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-0/+7
| | | | | | | | 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.
* More generalized fix to aborted-createrepo ".olddata" problems, which nowMichael DeHaan2007-04-131-0/+17
| | | | applies to "cobbler reposync" as well as "cobbler import".
* Working on adding pxemenu support.Michael DeHaan2007-02-141-0/+1
|
* Converting storage for template parameters, kernel options, and repo lists ↵Michael DeHaan2007-02-141-0/+23
| | | | | | | (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.
* Work towards implementation of optional integrated "light" sync support, ↵Michael DeHaan2007-02-011-0/+4
| | | | | | 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.
* Remove subprocess referenceMichael DeHaan2006-10-111-2/+2
|
* Fix elilo conf file naming since apparently elilo does not support ↵Michael DeHaan2006-10-051-1/+5
| | | | bootloader profiles based on MAC addresses as does syslinux. This workaround uses the pxe-address field, thus requiring this field for IA64 until the issue can be resolved in elilo.
* Fix filename casing bugMichael DeHaan2006-09-251-1/+1
|
* Naming cleanup of a few variables now that we're dealing with moreMichael DeHaan2006-09-211-1/+1
| | | | than pxelinux.0 (likely elilo.efi)
* - Since /mnt/redhat images for Xen do not contain kernel and initrd version ↵Michael DeHaan2006-09-181-2/+2
| | | | and build numbers, ease the cobbler restriction that all images must contain version and build numbers.
* - Fixing bug that didn't allow lowercase MAC input, now upcasing itMichael DeHaan2006-09-131-2/+2
|
* Remove stray characters from gethostbyip, which interfere with PXE IP encoding.Michael DeHaan2006-05-111-1/+1
|
* 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.
* Interim checkin while straightening out exceptions. The last_error bit ↵Michael DeHaan2006-05-081-16/+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-6/+13
|
* PyChecker.Michael DeHaan2006-05-081-4/+5
|