summaryrefslogtreecommitdiffstats
path: root/config-db
Commit message (Collapse)AuthorAgeFilesLines
* preparations to support cdboot as a second boot type for clientsOliver Tappe2008-05-281-143/+50Star
| | | | | | | | * refactored PXE specific stuff out of slxconfig-demuxer and moved it into a separate class (OpenSLX::BootEnvironment::PXE) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1809 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cosmetics: print filename of kernel instead of full path in warning that is Oliver Tappe2008-05-281-1/+2
| | | | | | shown when a kernel is being picked automatically git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1808 95ad53e4-c205-0410-b2fa-d234c58c8868
* * when checking the attributes from within the config-demuxer, we no longer ↵Oliver Tappe2008-05-281-0/+5
| | | | | | | | complain about attributes that belong to plugins which are not installed anyway git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1807 95ad53e4-c205-0410-b2fa-d234c58c8868
* * refactored code for synchronization of attributes (moved from DBSchema to ↵Oliver Tappe2008-05-274-60/+225
| | | | | | | | | | | | ConfigDB) * When doing synchronization of attributes during a schema update, we now look for any stale attributes in system_attr, client_attr, group_attr or installed_plugin_attr and remove all those stale attributes automatically. Additionally, non-existent plugins that are still installed in a vendorOS are removed from that, too. * Updated DB-Schema to 0.31 in order to trigger this automatic cleaning process git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1805 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug that would not allow setting an empty attribute to '0'Oliver Tappe2008-05-251-1/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1801 95ad53e4-c205-0410-b2fa-d234c58c8868
* * heavily redesigned and improved the checking of attributes: instead of dyingOliver Tappe2008-05-243-40/+65
| | | | | | | | | | | on the first error, we now collect all errors and return them. The caller can now decide what to do - die or just print a warning or whatever. * slxconfig now dies with the list of all attribute problems if there were any * slxconfig-demuxer prints warnings for all attribute problems that were found (checking for each system & client in turn) * adjusted desktop plugin to API changes concerning the attribute checks git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1796 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added checking of system attributes, too (before only clients were checked)Oliver Tappe2008-05-241-1/+12
| | | | | | * minor cleanup of output format when complaining about problematic attribute values git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1792 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added checking of attributes for every client & system before its ↵Oliver Tappe2008-05-241-0/+10
| | | | | | | | attributes are being written to a configuration file - any problems are reported as warnings git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1790 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented checking of attributes for groups and clients in slxconfigOliver Tappe2008-05-242-4/+22
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1789 95ad53e4-c205-0410-b2fa-d234c58c8868
* * artifically bumped the schema version to 0.30 in order to trigger a ↵Oliver Tappe2008-05-241-1/+10
| | | | | | | | synchronization of attributes into default system (required since plugins were added & removed) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1788 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug introduced recently that would cause attributes of default system toOliver Tappe2008-05-241-1/+3
| | | | | | | never be removed (which in turn messes up the automatic synchronization of attributes into the default system) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1787 95ad53e4-c205-0410-b2fa-d234c58c8868
* * use Clone::clone instead of Storable::dclone throughout OpenSLX in order ↵Oliver Tappe2008-05-223-10/+10
| | | | | | | | | | to use the same cloning function everywhere * added check for Clone module to Makefile git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1784 95ad53e4-c205-0410-b2fa-d234c58c8868
* * attributes set via slxconfig are now being checked not only against the ↵Oliver Tappe2008-05-222-41/+79
| | | | | | | | | | | | | | respective regex, but the corresponding plugin is being invoked to do a check of its own, too (where it has the chance to look at the vendor-OS attributes and determine the possible stage3-values from their state). * listing a vendor-OS in verbose mode now shows the vendor-OS attributes (stage1 & stage3), too * used Clone::clone instead of Storable::dclone since the latter is not capable of cloning compiled regexes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1783 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug in slxconfig introduced yesterday that would not allow settingOliver Tappe2008-05-212-9/+42
| | | | | | any attribute that has not come from a plugin (reported by Reiner) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1779 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to slxconfig for checking the given attribute values againstOliver Tappe2008-05-201-0/+7
| | | | | | | their respective regex, an appropriate complaint is shown if the value doesn't match git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1778 95ad53e4-c205-0410-b2fa-d234c58c8868
* * optimized the methods that set the attributes of a client/group/system toOliver Tappe2008-05-201-46/+114
| | | | | | | only execute required changes (instead of deleting all and then re-adding them with the new values) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1776 95ad53e4-c205-0410-b2fa-d234c58c8868
* * renamed --verbose-level to --log-level to make it more separate from ↵Oliver Tappe2008-04-073-5/+5
| | | | | | --verbose. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1729 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finally corrected algorithm for merging attributes from default-system & ↵Oliver Tappe2008-04-031-7/+8
| | | | | | | | vendor-OS into a specific system - fixing #213 git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1719 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Deactivated DB-schema version 0.28, as it does not work with the currentOliver Tappe2008-03-261-1/+5
| | | | | | | implementation (it tries to access a table which is created in the next DB-schema version). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1696 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-2025-6236/+6236
| | | | | | May need some manual corrections here and there, but should basically be ok. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1658 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several bugs with respect to the listing of plugins (as part of a systemOliver Tappe2008-03-191-7/+13
| | | | | | or vendor-OS) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1657 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect behaviour with respect to merging of plugin attributes:Oliver Tappe2008-03-181-3/+4
| | | | | | | we need to push them over the attributes of the default-system, not merge them - reported by Michael git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1653 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed debug outputOliver Tappe2008-03-171-2/+7
| | | | | | | | * fixed problem with respect to writing system attributes: do not filter unset attributes for the default-system, as we want that to show all existing attributes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1649 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several bugs in the config-demuxer caused by recent changes in pluginOliver Tappe2008-03-173-11/+37
| | | | | | | | | | | | | | | code (the way plugin info is returned from DB) * Added support to mergeDefaultAttributesIntoSystem() for merging in attributes that are stored in the installed plugins of the corresponding vendor-OS. The new order for system attribute selection is: 1. default client 2. specific system 3. vendor-OS (plugin attributes only) 4. default system git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1648 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added getStage3Attrs()Oliver Tappe2008-03-171-0/+28
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1645 95ad53e4-c205-0410-b2fa-d234c58c8868
* * adjusted to recent changes in plugin-codeOliver Tappe2008-03-171-9/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1644 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for stage1 attributes that are stored along each plugin ↵Oliver Tappe2008-03-144-20/+101
| | | | | | | | | installed into a vendor-OS. * an update of the slxos-plugin documentation is still missing (coming soon ;-) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1633 95ad53e4-c205-0410-b2fa-d234c58c8868
* Fix 'unterminated list at =head in paragraph' error of pod2html.Lars Müller2008-03-131-0/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1630 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented rsync-based build folder strategy for slxconfig-demuxer whichOliver Tappe2008-03-061-23/+30
| | | | | | | | | should improve compatibility with a chrooted tftpd * fixed bug that caused secondary slxconfig-demuxer instance to remove the lock file upon exit git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1607 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed potential use of uninitialized valueOliver Tappe2008-02-201-1/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1564 95ad53e4-c205-0410-b2fa-d234c58c8868
* * correct implementation bug that caused last schema change to work only ↵Oliver Tappe2008-02-172-4/+13
| | | | | | | | | half-way: now we can install the default plugins into the default vendor-OS - leading to db schema version 0.28 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1557 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added vendor-OS '<<<default>>>', which holds the plugins which shall beOliver Tappe2008-02-171-1/+15
| | | | | | | | installed automatically into every vendor-OS that is being generated. Currently, the only default-plugin is 'theme'. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1556 95ad53e4-c205-0410-b2fa-d234c58c8868
* Refactored call-out to plugins when making the initramfs:Oliver Tappe2008-02-161-21/+5Star
| | | | | | | | | | | | | | | | * The code for setting up the plugin in the initramfs has been moved into the plugin base, as this makes it possible for any plugin to override it (should the need ever arise). * The plugin scripts themselves are now being copied into the initramfs, instead of being part of the config-TGZ - they are static scripts, so there's no need to make them part of the config. Only the actual settings of each plugin are part of the config-TGZ now. * Cleaned up most accesses from plugins to private data of the makeInitRamFS- engine. I have tested with these changes with Ubuntu and Debian, and splashy still works for both, so it should be ok. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1551 95ad53e4-c205-0410-b2fa-d234c58c8868
* * hopefully finally fixed the utf8-related character problems in --manOliver Tappe2008-02-122-2/+2
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1539 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implement support for letting the plugins suggest additional kernel_paramsOliver Tappe2008-02-101-0/+3
| | | | | | | | | * the theme plugin now suggests the use of the kernel-params 'vga=0x317' and 'quiet' unless they have already been set [these values should be moved into the DB later, such that the user can change them (i.e. to set a different resolution via vga=...)]. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1532 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added renaming functionality that upgrades exports and systems that follow Oliver Tappe2008-02-101-1/+24
| | | | | | the old naming scheme (single colon) to the current one (double colon) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1530 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect expectation in test (now there are 34 attributes insteadOliver Tappe2008-02-091-1/+1
| | | | | | of 35) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1529 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped attribute ramfs_screen as it is no longer needed (splashy doesOliver Tappe2008-02-095-46/+24Star
| | | | | | | | | | not need to be given the screen-size) - updating schema version to 0.25 * little code simplification in DBSchema.pm * removed ramfs_screen from all tests * added method removeAttributeByName() to MetaDB in order to be able to remove attributes from the DB in a simple manner git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1528 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed commentOliver Tappe2008-02-091-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1524 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed potential use of undefined value (spotted by Michael)Oliver Tappe2008-02-091-39/+36Star
| | | | | | | * cmdline options are now collected in a hash instead of individual variables, as this is much clearer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1523 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for show inherited attributes to the search actions, tooOliver Tappe2008-02-091-194/+160Star
| | | | | | | | | * cmdline options are now collected in a hash, not in individual variables, as this is much clearer * specifying --inherited now always activates --verbose (in order to actually show attributes) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1522 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleaned up the code a bit with respect to the handling of target systemsOliver Tappe2008-02-031-18/+29
| | | | | | | | | * clearified the output about which systems have been demuxed and which were just linked into the PXE menu * fixed incorrect counting of systems that had their configuration written * updated docs to current state git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1514 95ad53e4-c205-0410-b2fa-d234c58c8868
* * the config-demuxer no longer writes the configurations for all systemsOliver Tappe2008-02-031-4/+11
| | | | | | | | if one or more specific targets have been given. Only target systems get their configuration written, their kernel copied and their initramfs generated. All other systems are just incorporated into the PXE menu. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1512 95ad53e4-c205-0410-b2fa-d234c58c8868
* * switched config-demuxer over to internal generation of initramfsOliver Tappe2008-02-021-84/+1Star
| | | | | | * obsoleted mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1511 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bugs that stopped new-style initramfs from workingOliver Tappe2008-02-021-2/+2
| | | | | | | | | * added support to new-style initramfs generator for integrating the active plugins into the initramfs With these fixes, I have been able to boot a cloned suse-10.2 into KDM with both bootsplash- and displaymanager-theme working. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1510 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for creating only the initramfs for the systems thatOliver Tappe2008-02-021-20/+57
| | | | | | | | | | | | have been given on the cmdline (the demuxing will still be done for all systems). * as a result of this, the generated initramfs-files now contain the id of the system as part of their name instead of a per-vendor-OS counter - the latter has become cumbersome now that we no longer generate all initramfs in every run. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1509 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished initial re-implementation of mkdxsinitrd in perl -Oliver Tappe2008-02-011-12/+30
| | | | | | there's still stuff missing and it has not been tested, either git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1508 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed debugging outputOliver Tappe2008-01-271-1/+0Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1501 95ad53e4-c205-0410-b2fa-d234c58c8868
* Hopefully finished the adjustments of the tools with respect to themeOliver Tappe2008-01-274-17/+51
| | | | | | | | | | | | | | | | | | naming and other recent discussions of user interface. * adjusted and simplified code to the fact that plugins are now named in all lowercase * slxos-plugin --verbose list now shows description for each plugin and a list of supported attributes * fixed some outstanding issues with respect to lowercasing of plugin names * Separated theme::name into theme::splash, theme::displaymanager and theme::desktop, leading to DB-schema 0.24. Please note that although these attributes exist, currently only theme::splash is being used (the new ones will be used by the reimplemented mkdxsinitrd) * moved some information gathering from OSPlugin::Engine into OSPlugin::Roster, where it belongs git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1500 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug that left orphaned installed_plugins when removing a vendor-OSOliver Tappe2008-01-271-0/+9
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1499 95ad53e4-c205-0410-b2fa-d234c58c8868