summaryrefslogtreecommitdiffstats
path: root/config-db/OpenSLX/ConfigDB.pm
Commit message (Collapse)AuthorAgeFilesLines
* change dir structureSebastian Schmelzer2010-09-021-3190/+0Star
|
* * fixed potential warning about undefined value during DB-schema upgradeOliver Tappe2008-10-081-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2270 95ad53e4-c205-0410-b2fa-d234c58c8868
* * removed default value for boot_type as that field no longer exists (itOliver Tappe2008-09-041-6/+0Star
| | | | | | now is an attribute with automatic default value) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2206 95ad53e4-c205-0410-b2fa-d234c58c8868
* * turned the client fields 'boot_type','unbootable' and 'kernel_params' as well Oliver Tappe2008-09-041-10/+48
| | | | | | | | as the system fields 'kernel_params' and 'hidden' into attributes * added client-only attribute 'boot_uri' which will soon be evaluated by the preboot-cd boot environment git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2205 95ad53e4-c205-0410-b2fa-d234c58c8868
* * cleaned all attributes that are marked obsolete by ticket #243 and a coupleOliver Tappe2008-08-201-3/+3
| | | | | | | | | more (see #243 for the list) * added all non-plugin-attrs into the hash-value that is being used to determine changes to the set of attributes & plugins git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2056 95ad53e4-c205-0410-b2fa-d234c58c8868
* Implemented a better algorithm for keeping the plugins and the referencesOliver Tappe2008-06-031-6/+13
| | | | | | | | | | | to them (and their attributes) in the DB in sync: * The DB now keeps a hash-value for the list of known plugins and their attributes and checks this value against the current one on every connect. If the values do not match, the DB is brought up-to-date automatically (i.e. the attributes are synchronized with the systems, clients and groups). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1837 95ad53e4-c205-0410-b2fa-d234c58c8868
* * separated synchronization of attributes from removal of stale references,Oliver Tappe2008-06-021-20/+34
| | | | | | | | | as the are in fact two separate concepts (and are invoked from different contexts) * added cleanup-db command to slxconfig which can be used to get rid of references to unknown attributes and/or plugins git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1836 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
* * refactored code for synchronization of attributes (moved from DBSchema to ↵Oliver Tappe2008-05-271-1/+173
| | | | | | | | | | | | 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
* * use Clone::clone instead of Storable::dclone throughout OpenSLX in order ↵Oliver Tappe2008-05-221-3/+3
| | | | | | | | | | 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
* * 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
* * Switched indent used in Perl-code and settings files from tabs to 4 spaces.Oliver Tappe2008-03-201-733/+733
| | | | | | 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 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
* * fixed several bugs in the config-demuxer caused by recent changes in pluginOliver Tappe2008-03-171-7/+28
| | | | | | | | | | | | | | | 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 support for stage1 attributes that are stored along each plugin ↵Oliver Tappe2008-03-141-7/+7
| | | | | | | | | 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
* * 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
* * added support to the merging functions for keeping track of the each Oliver Tappe2008-01-261-12/+24
| | | | | | attribute value's origin git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1493 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug where changing an attribute of a client or system would dropOliver Tappe2008-01-111-0/+3
| | | | | | | | | | all other (pre-existing) attributes * now detailed info about the active plugins are shown when listing a system * the default attributes of the plugins are now synchronized against the default system whenever a plugin is installed into a vendor-OS (otherwise, the respective plugin would not be activated automatically) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1464 95ad53e4-c205-0410-b2fa-d234c58c8868
* * the config-demuxer now only demuxes attributes of active plugins that haveOliver Tappe2008-01-091-0/+3
| | | | | | been installed into the current system's vendor-OS. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1455 95ad53e4-c205-0410-b2fa-d234c58c8868
* * several fixes related to the handling of plugin-specific attributesOliver Tappe2008-01-091-31/+1Star
| | | | | | by the config-demuxer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1452 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented automatic synchronization of new/changed attributes (eitherOliver Tappe2008-01-081-1/+1
| | | | | | | from core or plugins) into the default system * reworked the way plugins pass out their attribute info git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1451 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new DB-table 'installed_plugin', moving schema version to 0.21Oliver Tappe2008-01-081-0/+97
| | | | | | | | * added functionality to DB-layer for adding, removing and fetching plugins that have been installed into a vendor-OS. * added a set of tests related to installed plugins. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1447 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several smaller bugs found when testing slxexportOliver Tappe2008-01-071-5/+10
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1446 95ad53e4-c205-0410-b2fa-d234c58c8868
* * finished refactoring of attribute handling code, especially theOliver Tappe2008-01-071-252/+164Star
| | | | | | | | | | | | | merging of attributes, such that all tests are passed * tested and finished implementation of group support in slxconfig * added new class AttributeRoster which keeps track of the known attributes (the ones provided by the openslx core and any other ones that may have been added by some plugin). * added new option --list-attributes to slxconfig which shows information about all known attributes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1444 95ad53e4-c205-0410-b2fa-d234c58c8868
* more refactoring (not limited to attribute handling)Oliver Tappe2008-01-041-144/+157
| | | | | | | | | * completed separation of attributes and standard (column) values * improved tests a lot That work is still not finished, so expect things to fail horribly. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1443 95ad53e4-c205-0410-b2fa-d234c58c8868
* more work at refactoring of the way attributes are handled:Oliver Tappe2008-01-041-26/+142
| | | | | | | | | | * finished and integrated support for declaring known attributes from within plugins (they need to install a AttrInfo module) * implemented support for checking which attributes are applicable to systems and clients respectively * adjusted slxconfig to new attribute handling (systems only at the moment) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1442 95ad53e4-c205-0410-b2fa-d234c58c8868
* * intermediate checkin of refactoring of the way attributes are stored in DBOliver Tappe2008-01-031-14/+92
| | | | | | | and passed in and out via the DB-layer N.B.: this may break things, will be fixed later today git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1440 95ad53e4-c205-0410-b2fa-d234c58c8868
* * completed test set for attribute merging, fixing several bugs along theOliver Tappe2007-12-291-11/+19
| | | | | | | | way - these tests expose the known problem of attributes not being resetable by higher priority layers (you can't set attr_start_xdmcp to '' in a client if it set by a system). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1437 95ad53e4-c205-0410-b2fa-d234c58c8868
* * completed basic tests and started to work on tests for aggregated valuesOliver Tappe2007-12-281-2/+10
| | | | | | (attributes) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1436 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added more tests for basic DB-features: group, global_info and Oliver Tappe2007-12-271-1/+11
| | | | | | | client_system_ref git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1435 95ad53e4-c205-0410-b2fa-d234c58c8868
* * completed regression tests for vendor-OSesOliver Tappe2007-12-161-4/+75
| | | | | | | | | * added regression tests for exports, systems and clients * fixed several bugs found by these tests * cosmetical cleanups in ConfigDB.pm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1431 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed meaning of groups.priority such that it corresponds with sortingOliver Tappe2007-11-291-1/+29
| | | | | | | order (0 means highest, 99 means lowest) * added method for getting the column names of a specific table git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1412 95ad53e4-c205-0410-b2fa-d234c58c8868
* * started to work on configDB-testsOliver Tappe2007-11-091-78/+52Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1407 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed bug that caused slxos-export to complain about theOliver Tappe2007-08-161-2/+2
| | | | | | missing function start_transaction() git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1323 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed several default-system and -client related bugs introduced yesterday,Oliver Tappe2007-08-031-17/+18
| | | | | | which rendered the slxconfig-demuxer pretty useless git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1311 95ad53e4-c205-0410-b2fa-d234c58c8868
* * some layout fixes to PODOliver Tappe2007-08-021-0/+18
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1307 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added POD to ConfigDB, and did some fixes along the wayOliver Tappe2007-08-021-82/+1576
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1306 95ad53e4-c205-0410-b2fa-d234c58c8868
* * ConfigDB-objects now reuse active DB-connections in order to reduce theOliver Tappe2007-08-011-130/+145
| | | | | | | | number of times any script asks for the db-password (and to reduce the number of used resources, too). * minor cleanup in slxconfig-demuxer git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1302 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped support for CSV databases, as they are simply not good enoughOliver Tappe2007-07-311-2/+1Star
| | | | | | | | | | | | * added support for db-user and db-passwd: + the mysql backend will now ask for the password upon connect + you can specify the db-user and db-passwd via slxsettings (so you never have to enter it manually afterwards) * slxsettings now checks db-type against an explicit pattern to avoid problems caused by typos git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1295 95ad53e4-c205-0410-b2fa-d234c58c8868
* * Fixed another bug reported by Bastian:Oliver Tappe2007-07-311-20/+20
| | | | | | | | | | | | | Default-client & -system recognition was dependant on the ID 0, which is not really possible with mysql (I do not count changing the server-global variable autoincrement_offset as an option). Now, we simply use the name instead. * changed slxconfig to reflect the direct relations between systems and clients, not the aggregated ones, as I found it confusing this way (slxconfig is rather a low-level tool). * minor cleanup in ConfigDB.pm git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1294 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for automatic selection of most appropriate (newest) kernelOliver Tappe2007-07-201-5/+30
| | | | | | | | | | | | if the kernel file specified by DB (in most cases: vmlinuz) does not exist. A warning will be printed by slxconfig-demuxer if the kernel had to be picked this way. This should allow slxconfig-demuxer to work for ubuntu & debian, as those do not always provide a vmlinuz-link (and in general this change makes the system more robust). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1265 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed yet another uninitialized valueOliver Tappe2007-07-181-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1254 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-101-3/+13
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-011-29/+29
| | | | | | | 'use of uninitialized values', a couple of which might still show up * adjusted all code with respect to passing perlcritic level 4 and 5 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1207 95ad53e4-c205-0410-b2fa-d234c58c8868
* * implemented support for generating a separate initramfs-setup as part ofOliver Tappe2007-06-241-1/+4
| | | | | | | | | the initramfs, machine-setup is now transported via Conf-TGZ only. N.B.: Couldn't apply this to the 4.1.0 branch since init has diverted a little too much for my liking! Will look into this next week. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1189 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-201-245/+242Star
| | | | | | | ticket#139 * code-reformatting with perltidy git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1176 95ad53e4-c205-0410-b2fa-d234c58c8868
* largish change with respect to configurable paths:Oliver Tappe2007-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | * instead of supporting configurable paths at different hierarchy levels, there are now only five configurable folder: + base-path (/opt/openslx), fixed at installation time + config-path (/etc/opt/openslx), fixed at installation time + private-path (/var/opt/openslx), freely configurable by user + public-path (/srv/openslx), freely configurable by user + temp-path (/tmp), freely configurable by user this closes ticket#143 * several holes have been plugged concerning the creation of folders before they are accessed, closing ticket#142 * the functionality of generating config default folders has been moved from the Makefile into a new Perl-module (ConfigFolder.pm), in order to be available to the Perl-scripts, too * slxsettings has been changed to reflect the nature of base-path and config-path as fixed paths git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrectly generated exportURI (still used the export-name insteadOliver Tappe2007-06-071-1/+1
| | | | | | of the vendor-OS-name) [reported by Felix, thanks!] git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1155 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed incorrect use of private-path instead of stage1-path, as reportedOliver Tappe2007-05-181-1/+1
| | | | | | by Michael (mj0) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1086 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed error during loading of DB-modules I introduced yesterdayOliver Tappe2007-05-121-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1051 95ad53e4-c205-0410-b2fa-d234c58c8868