summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
Commit message (Collapse)AuthorAgeFilesLines
* Implement PXE boot loop prevention feature using a CGI script that speaks to ↵Michael DeHaan2007-08-031-7/+12
| | | | | | a special function in cobblerd.
* Fix snippet cache codeMichael DeHaan2007-07-271-1/+1
|
* Added a SNIPPET::foo feature which can do the equivalent of %include in ↵Michael DeHaan2007-07-271-9/+32
| | | | | | | | | kickstart without the need for a wget and http hosting. Snippets live in /var/lib/cobbler/snippets -- Cobbler ships with only one snippet now (as a demo), though users can create as many as they want.
* make $kernel_options template accessibleMichael DeHaan2007-07-231-0/+2
|
* Debian has a different argument for 'ksdevice', also add extra D/L infoMichael DeHaan2007-06-291-0/+1
| | | | to web page.
* Request kickstart files based on system.name, not pxeification, since newerMichael DeHaan2007-06-261-4/+4
| | | | koan does not pxeify request URLs.
* Experimental support for provisioning Debian.Michael DeHaan2007-06-211-0/+2
|
* Fix status printingMichael DeHaan2007-06-211-3/+3
|
* Optional override of --kickstart on a per-system basis.Michael DeHaan2007-06-151-5/+6
|
* Make ksmeta variables available at top level again.Michael DeHaan2007-06-121-24/+6
|
* Add conceptual_parent concept, to allow tree retrieval of objects that may haveMichael DeHaan2007-06-121-14/+12
| | | | | | | | | 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()
* Remove dead code.Michael DeHaan2007-06-121-31/+0
|
* Generalizes object blending and the concept of parentage to allow for later ↵Michael DeHaan2007-06-111-120/+85
| | | | | | | | | | | | | 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.
* Fix error in string translation changes.Michael DeHaan2007-06-011-2/+2
|
* Ongoing work on making system --names descriptive, plus manpage andMichael DeHaan2007-05-301-1/+1
| | | | CHANGELOG changes.
* WIP: Allow system names to be anything, and gather mac address and IP fromMichael DeHaan2007-05-301-48/+25
| | | | | | 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-33/+27
| | | | | | | 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/+3
|
* Change cobbler code to use /etc/ethers and /var/lib/cobbler/cobbler_hostsMichael DeHaan2007-05-241-10/+45
| | | | | | | | | | | for dnsmasq, only writing minimal contents to /etc/dnsmasq.conf -- basically just tagging the systems with weird arches so they get the right bootloaders. "Cobbler sync" will only need to be run when adding the systems with the weird arches, and others should be dynamic without need to SIGHUP (/sbin/service restart) dnsmasq. In theory :) dnsmasq integration with cobbler is still rather experimental, but looks solid thus far. Have not actually tested any non-pxelinux.0 arches.
* Add support for dnsmasq as an alternative to ISC dhcpd.Michael DeHaan2007-05-241-24/+55
| | | | | Also add --hostname option to "cobbler system add" for dnsmasq DNS control features.
* Kickstart tracking now mines the apache logs rather than relying on theMichael DeHaan2007-04-111-87/+0
| | | | | | | | | | | | | | | watcher.py mod_python script, so there is room for greater platform compatibility. A cgi-based more-portable alternative to watcher is still desirable. Since apache logs are cycled more frequently than cobbler logs, this does mean that we lose a bit of granularity with regards to start/stop times, though this can presumably be refined. Last request time (the most important bit) is still solid. Need to verify that Apache log time parsing (strptime) isn't doing anything strange with time zones as cobbler is logging GMT. I suspect it might and that would affect results and state detection.
* Disable mod_python tracking piece for RHEL5, as it is apparently causingMichael DeHaan2007-04-101-1/+1
| | | | | some problems there. Need to replace it with something more portable. Can consider working in better tracking info at the same time.
* Doc cleanup.Michael DeHaan2007-04-051-9/+10
|
* More better (TM) repo parameterization in kickstarts.Michael DeHaan2007-04-041-4/+5
|
* Correct some errors in kickstart templating for the new repo stuff ...Michael DeHaan2007-04-041-2/+3
|
* Add preliminary support for RHEL5 tree management. This is ratherMichael DeHaan2007-04-031-0/+22
| | | | | | | | | | | | complicated and introduces a new variable source_repos on each 'distro' object and also has some implications for how sync completes. Basically RHEL5 has multiple comps files so createrepo must be run more than once. The main point of this support is to install and configure the "core" mirror for distros, where previously only extras/updates were dealt with. The core repo is derived from the kickstart tree (cobbler import) rather than the "cobbler repo add" commands (manual add).
* Fix bug with cobbler sync and older configs.Michael DeHaan2007-04-021-1/+1
|
* Ongoing work for 0.4.4 -- misc tweaks/fixes, and continuation on the ↵Michael DeHaan2007-03-221-14/+5
| | | | | | | 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.
* Ongoing work on a better DVD import...Michael DeHaan2007-03-201-3/+3
|
* Most of these diffs come from directory reorg/cleanup, though the main ↵Michael DeHaan2007-03-191-68/+79
| | | | 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.
* Updated cobbler TODO with messages from list.Michael DeHaan2007-03-151-0/+1
|
* dirname, not basename.Michael DeHaan2007-03-081-1/+1
|
* Some defensive programming around kernel options rendering, based on a error ↵Michael DeHaan2007-02-221-2/+2
| | | | report to et-mgmt-tools. I have not been able to reproduce the actual error.
* Adding disable_netboot option for cobbler, which can be programatically ↵Michael DeHaan2007-02-201-25/+19
| | | | | | | | exercised by API users to prevent install-loop scenarios by taking action as a result of some event in post. Also making syncless code modifications work with IA64 tftp locations.
* Be a little nicer on file deletes, release housekeeping.Michael DeHaan2007-02-191-1/+1
|
* Fixes to work with older versions of Cheetah, small fix to system delete ↵Michael DeHaan2007-02-191-1/+4
| | | | code so it deletes the right file in kickstarts_sys.
* Unbundling Cheetah.Michael DeHaan2007-02-191-8/+0
|
* Bundle and install menu.c32 for those distros (like RHEL4) that don't ↵Michael DeHaan2007-02-191-1/+1
| | | | package it.
* Fix the backwards compatibility code around TEMPLATE:: and also changemdehaan@mdehaan.rdu.redhat.com2007-02-191-1/+1
| | | | the template files to use basic $placeholders instead of TEMPLATE::
* Bundling Cheetah for backwards compatibility, and associated changes to ↵Michael DeHaan2007-02-191-9/+19
| | | | specfiles/etc.
* A few thingsMichael DeHaan2007-02-161-1/+1
| | | | | | - manpage clarification/correction (including a parameter typo in "cobbler repo add") - don't write the etc/yum.repos.d file if no --local-filename - print out createrepo command for debug purposes (during cobbler import)
* Temporary menu support hack to work around menu.c32 timeout problems. User ↵Michael DeHaan2007-02-151-3/+3
| | | | | | | | can type "menu" at the prompt to get a menu, or they can type "local" (or just wait 20 seconds) for a local boot. Once the user starts typing, the absolute timeout is 10 minutes, ensuring a machine doesn't get left at the menu screen. All of this will probably be user configurable later.
* More work on PXE menus. Getting there, just need timeout logic to work.Michael DeHaan2007-02-151-44/+34
|
* Working on adding pxemenu support.Michael DeHaan2007-02-141-35/+112
|
* Further changes related to making cobbler own the directories it's using in ↵Michael DeHaan2007-02-141-31/+27
| | | | | | /var/www and /tftpboot. Plus some minor bugfixes down the error path.
* Run check in post to ensure cobbler tree setup, such that ↵mdehaan@mdehaan.rdu.redhat.com2007-02-141-23/+26
| | | | distros/systems/profiles can be added immediately, without the need to run "sync" to create the base directories.
* Converting storage for template parameters, kernel options, and repo lists ↵Michael DeHaan2007-02-141-80/+64
| | | | | | | (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.
* Moving back to Cheetah for templatingMichael DeHaan2007-02-131-12/+30
|
* Allow some variables to be None that really shouldn't ever be None, though ↵Michael DeHaan2007-02-121-8/+9
| | | | for some reason they are None. Make sense? Good :)
* merge with myselfMichael DeHaan2007-02-091-2/+5
|\