summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.py
Commit message (Collapse)AuthorAgeFilesLines
* Less output from optparseMichael DeHaan2008-02-191-1/+1
|
* Catch system exit to make optparse print nicelyMichael DeHaan2008-02-191-0/+2
|
* Further work on CLI modularization. All commands implemented now, except ↵Michael DeHaan2007-11-191-6/+8
| | | | | | | 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-759/+23
| | | | defining new CLI commands.
* --local-filename is removed, so don't parse the option.Michael DeHaan2007-11-091-1/+0
|
* Added a --server-override parameter, which will be used to specify a ↵Michael DeHaan2007-11-011-2/+4
| | | | | | | | | | different server address for when the server may need to provision boxen on different subnets that therefore need different source URLs and so on. This means cobbler will now be able to represent more than one server address for the same cobbler machine. WUI parts and backend changes to utilize this TBA shortly.
* Apply patch to restore --arch parameter and handling to cobbler repoMichael DeHaan2007-10-291-1/+2
| | | | management.
* Pass with_copy to repo additions to ensure they are serialized in the new ↵Michael DeHaan2007-10-191-1/+1
| | | | way we do serialization.
* Work on an shelve-based external storage, for performance testing. SqliteMichael DeHaan2007-10-151-3/+8
| | | | is just as likely at this point.
* Remove some dead code and update a few FIXMEs that no longer apply.Michael DeHaan2007-10-101-1/+0
|
* Support for setting virt-cpu number in cobbler + tests.Michael DeHaan2007-10-101-0/+1
|
* Added profile virt-bridge setting to the settings fileMichael DeHaan2007-10-101-0/+1
|
* Encountered some weird bug presumably related to optimization, so unrolling ↵Michael DeHaan2007-10-101-28/+77
| | | | the command line parser details for now. This can all be fixed should we move the command line parser to use optparse or equivalent in the future.
* The stringification problem appears to lie in the serializer, so explicitly ↵Michael DeHaan2007-10-091-14/+14
| | | | | | use strings in the YAML to pacify the XMLRPC bits. Plus, this is more readable.
* A few bugfixes. Still working on multiple NICs.Michael DeHaan2007-10-091-5/+5
|
* Once again, all tests pass, however a lot more manual testing in regards to ↵Michael DeHaan2007-10-081-3/+3
| | | | | | | | 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.
* In process of making NICs seperate data structures in cobbler, which ↵Michael DeHaan2007-10-081-6/+19
| | | | | | | requires seperate accessors and templating. This is all to allow multiple NICs in koan. Stil needs changes in sync code and possibly other places.
* Added --dhcp-tag for multi-subnet configurationMichael DeHaan2007-09-071-17/+19
|
* Ben Riggs patch to allow for reposyncs of explicit repos + tweakMichael DeHaan2007-09-061-1/+1
| | | | to repo object to ensure items get serialized as booleans.
* Working on pluggable serializers.root2007-09-051-6/+6
|
* removed deprecated enchant function/module (just use SSH!), config file cleanup.root2007-09-051-36/+0
|
* Added "cobbler repo auto-add" feature which can discover all the reposMichael DeHaan2007-08-311-9/+13
| | | | | the cobbler server has configured in yum and set them up to be mirrored automagically.
* Ben Riggs patch to allow find to take arbitrary variables plus a reworkingMichael DeHaan2007-08-151-3/+3
| | | | | | 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.
* Added feature where a network install location can be given to do cobbler ↵Michael DeHaan2007-08-011-2/+8
| | | | | | imports without mirroring. This is explained in the manpage and online docs.
* Added -v/--versionMichael DeHaan2007-07-261-0/+6
|
* Added kickstart validation code to cobbler + documentation.Michael DeHaan2007-07-261-0/+7
|
* Fix error message.Michael DeHaan2007-07-171-1/+1
|
* Adding plumbing in cobbler for --virt-path and --virt-type options.Michael DeHaan2007-07-121-2/+6
|
* Add netboot-enabled to CLIMichael DeHaan2007-07-121-1/+2
|
* Optional override of --kickstart on a per-system basis.Michael DeHaan2007-06-151-3/+5
|
* Lots of work towards profile inheritance. This works in the UI now, withMichael DeHaan2007-06-131-15/+39
| | | | | | | | | | | | | | | | | | | 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 tree listing to allow for inheritance and arbitrary nestingMichael DeHaan2007-06-121-15/+14
|
* Add --createrepo-flags (in "cobbler repo add") to the manpage, also add "-cMichael DeHaan2007-06-071-1/+1
| | | | cache" as a default value.
* This is Perry Myers's patch to reposync to allow for caching options and toMichael DeHaan2007-06-071-1/+2
| | | | eliminate extra calls to createrepo.
* WIP: Allow system names to be anything, and gather mac address and IP fromMichael DeHaan2007-05-301-2/+5
| | | | | | 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-40/+60
| | | | | | | 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/+5
|
* Add support for dnsmasq as an alternative to ISC dhcpd.Michael DeHaan2007-05-241-1/+3
| | | | | Also add --hostname option to "cobbler system add" for dnsmasq DNS control features.
* Echo "list" features in report syntax.Michael DeHaan2007-04-271-9/+17
|
* Allow "list" to show specifics of a specific object when given as aMichael DeHaan2007-04-271-4/+23
| | | | parameter.
* Remove redundant self argsMichael DeHaan2007-04-201-4/+4
|
* This commit overhauls the main cobbler CLI module and adds support forMichael DeHaan2007-04-201-161/+294
| | | | | | | | | | | | 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.
* This commit adds a --rpm-list parameter to "cobbler repo add". --rpm-listMichael DeHaan2007-04-101-1/+2
| | | | | | | | | | | | | | | | | allows for partial mirroring of RPM content from a yum repository using yumdownloader. An example of this would be wanting to have a local mirror of useful tools from FC6 Extras (cobbler and koan, possibly?) while not pulling down content that just takes up time/space (like 3D games). This will work for http:// and ftp:// repositories, but not RHN at this point. Incidentally this feature doesn't resolve dependencies at this point because yumdownloader is currently broken. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=232183 So, for now, give all dependencies for --rpm-list and when yumdownloader gets fixed, the "--resolve" argument can be reinserted and this will be a lot more useful.
* This is 0.4.5Michael DeHaan2007-03-231-4/+0
|
* Ongoing work for 0.4.4 -- misc tweaks/fixes, and continuation on the ↵Michael DeHaan2007-03-221-1/+8
| | | | | | | 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.
* Most of these diffs come from directory reorg/cleanup, though the main ↵Michael DeHaan2007-03-191-8/+2
| | | | 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.
* Converting storage for template parameters, kernel options, and repo lists ↵Michael DeHaan2007-02-141-0/+11
| | | | | | | (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.
* Added an optional --breed parameter for "distro add" that supports usage of ↵Michael DeHaan2007-02-091-1/+3
| | | | a SuSE answer file (needs testing) and can make way for other distros. koan needs to detect when it's been given a non-redhat based distro and not do anything, though cobbler PXE should work in both cases.
* Work towards implementation of optional integrated "light" sync support, ↵Michael DeHaan2007-02-011-22/+14
| | | | | | 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.
* Don't show tracebacks for Ctrl+C.mdehaan@mdehaan.rdu.redhat.com2007-01-041-0/+3
|