summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate various repo related warnings under cobbler check and clean up ↵Michael DeHaan2008-05-131-7/+11
| | | | prints elsewhere.
* Added code to cobbler check to see if any templates are still using the defaultMichael DeHaan2008-05-131-0/+15
| | | | password, and if so, to warn about them.
* Make duplicate mac checking work in more places, nicer error when ↵Michael DeHaan2008-05-121-4/+7
| | | | encountering rootsquash.
* Adding --virt overrides for many more additional fields that were foundMichael DeHaan2008-05-081-0/+146
| | | | | in the profiles objects but not in the system objects. This needs testing in both the webui and command line.
* Apply John Eckersberg's patch to allow random mac usage from the command line.Michael DeHaan2008-05-081-0/+21
|
* This is the new status engine in progress. I still need to do some things ↵Michael DeHaan2008-04-161-3/+0
| | | | | | | | to parse out times and indicate how long installs have been active (so there is an easier way to grep for last installs). Technically this will also provide ways of looking at an install history which is probably something we could add if it was interesting. Lots of options.
* Replaced the existing cobbler pre/post install triggers system with a much ↵Michael DeHaan2008-04-151-4/+6
| | | | more flexible model that (for each system) passes in the following. First arg: the word "system" or "profile", Second arg: the name of the said system or profile, Third: the MAC if available, Fourth: the IP. This is all logged by a default "status" trigger to /var/log/cobbler/install.log, for being read by the soon-to-be-revamped cobbler check. The check system logs all of this in order, followed by the word "start" or "stop", followed by the number of seconds since Epoch.
* Better kerberos support. See the Wiki.Michael DeHaan2008-04-141-1/+1
|
* F8/9 kickstart format supportMichael DeHaan2008-04-141-2/+8
|
* Now possible to override snippets on a per-profile or per-system basis, as ↵Michael DeHaan2008-04-111-9/+66
| | | | discussed on the mailing list for usage for doing disk/package config, etc
* Import now takes an --arch, which is now a recommended field, to ensureMichael DeHaan2008-04-111-20/+36
| | | | best practices in naming.
* Two things -- (A) remove rhpl dep as we aren't using it and we want to useMichael DeHaan2008-04-091-1/+5
| | | | | more standard xlat for other distros potentially, (B) fix the kerb module some more.
* Add owners list to WebUI pages, also customize function for savingMichael DeHaan2008-03-281-1/+3
| | | | lists to avoid extra whitespace on comma delimited inputs.
* Add a --owner to all the objects, plus associated API calls and backend ↵Michael DeHaan2008-03-261-1/+15
| | | | | | | | stuff, for use with the (pending real soon now) authz_ownership module. Also updated docs. Incidentally, self.settings.tftpboot is now utils.tftpboot_location() -- which is required because tftpboot moves around. Previously this was masked to still look like a settings variable but I decided to remove the hack. All code using that location has been updated appropriately.
* tftpboot location discovery for F9Michael DeHaan2008-03-251-0/+48
|
* Added patch to allow kopts/ksmeta to be cleared with --kopts=delete on theMichael DeHaan2008-03-131-1/+1
| | | | command line.
* This is a fix to a webui submission problem for the repos field on certainMichael DeHaan2008-02-221-0/+23
| | | | | versions of mod_python. It still needs to be fixed correctly though this makes that page work for now.
* Merge branch 'devel'Michael DeHaan2008-02-151-4/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | Merging devel work on 0.7.X/0.8 release with master Conflicts: CHANGELOG cobbler.spec cobbler/action_import.py cobbler/utils.py cobbler/webui/master.py setup.py
| * Added http_port parameter to settings so Apache can run on ports other than 80.Michael DeHaan2008-01-101-0/+6
| |
| * Added a parameter --yumopts which allows setting parameters for yum plugins ↵Michael DeHaan2008-01-091-4/+2
| | | | | | | | | | | | in a manner similar to how --kopts and --ksmeta works.
| * Fix bug related to hash evaluation, bump release for testing branchMichael DeHaan2007-11-151-0/+3
| |
* | (a) modify tests to be tolerant of existing directory, (b) modify input ↵Michael DeHaan2007-11-151-0/+4
|/ | | | | | engine to know that <<inherit>> is never going to be a string key, so be sure to not include it in things like kickstart arguments.
* (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.