summaryrefslogtreecommitdiffstats
path: root/config-db
Commit message (Collapse)AuthorAgeFilesLines
* * 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-022-85/+1579
| | | | 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-012-133/+148
| | | | | | | | 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-313-187/+16Star
| | | | | | | | | | | | * 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-313-305/+347
| | | | | | | | | | | | | 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
* * base work towards utf8-cleanness (it is now possible to handle vendor-OSesOliver Tappe2007-07-214-10/+10
| | | | | | | | | whose name contain UTF8-characters * fixed problem with locale-specific number format being used during DB- creation (fixes the problem that database access would only work once for de_DE-locales [reported by Detlef Schulz]) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1266 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
* * fixed use of an uninitialized valueOliver Tappe2007-07-181-11/+24
| | | | | | | * added support for automatically dropping 'name=""' constructs whenever only the name is expected (as a special gift to Dirk ;-P) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1253 95ad53e4-c205-0410-b2fa-d234c58c8868
* * some cleanup - we now make use of here-docs where feasibleOliver Tappe2007-07-181-16/+19
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1252 95ad53e4-c205-0410-b2fa-d234c58c8868
* * replaces most occurrences of confess() with croak(), as that is less noisy.Oliver Tappe2007-07-184-30/+31
| | | | | | | Confess()-ing can still be triggered by specifying --debug-confess on the commandline. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1249 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split listing functionality into list-... and search-..., such that list-...Oliver Tappe2007-07-181-16/+157
| | | | | | | | only lists the elements with the given names (no more need to specify name='<name>'), while search-... executes an arbitrary key-value search (and thus requires key-value-pairs as parameters). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1248 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed a couple of 'use of uninitialized values' reported by DirkOliver Tappe2007-07-181-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1244 95ad53e4-c205-0410-b2fa-d234c58c8868
* * more work towards perlcritic compliance, fixed the low-hanging fruit Oliver Tappe2007-07-109-14/+68
| | | | | | for level 4 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1234 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed use of uninitialized valueOliver Tappe2007-07-061-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1227 95ad53e4-c205-0410-b2fa-d234c58c8868
* * now a dummy hostname ('slx-client') is set in initramfs-setup, just to haveOliver Tappe2007-07-061-0/+1
| | | | | | any hostname in case the client is not using a dhcp client. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1226 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support for os-plugins:Oliver Tappe2007-07-031-15/+76
| | | | | | | | | | | | + added script slxos-plugin, which must be invoked to install a plugin into a vendor-OS + added handling of plugins to slxconfig-demuxer + added folder structure for plugins (below 'os-plugins') + implemented one simple plugin, called 'Example' which contains a couple of hints how to write own plugins git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1220 95ad53e4-c205-0410-b2fa-d234c58c8868
* * verbose-mode is now activated automatically if you request the listingOliver Tappe2007-07-011-0/+8
| | | | | | of some type and pass in specific arguments git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1208 95ad53e4-c205-0410-b2fa-d234c58c8868
* * activated 'use warnings' to all modules and adjusted all occurences ofOliver Tappe2007-07-0110-105/+101Star
| | | | | | | '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-242-138/+173
| | | | | | | | | 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
* * cosmetical change of info textOliver Tappe2007-06-201-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1184 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed showstopping bugs introduced with rev 1176, sorry!Oliver Tappe2007-06-204-386/+375Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1177 95ad53e4-c205-0410-b2fa-d234c58c8868
* * split export type into filesystem and (optional) blockdevice, closingOliver Tappe2007-06-209-309/+306Star
| | | | | | | 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-177-78/+73Star
| | | | | | | | | | | | | | | | | | | | * 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
* * moved slxsettings from 'config-db' to 'bin', as it has nothing to do withOliver Tappe2007-06-141-366/+0Star
| | | | | | the db (anymore) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1163 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed all warnings indicated by 'perl -w'Oliver Tappe2007-06-133-6/+8
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1162 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 wrong default value for attribute 'start_xdmcp', should be 'kdm' Oliver Tappe2007-06-021-1/+1
| | | | | | | instead of 'kde' (reported by Dirk and Felix) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1139 95ad53e4-c205-0410-b2fa-d234c58c8868
* Make vesamenu.c32 available for optional useFelix Endres2007-06-011-0/+5
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1132 95ad53e4-c205-0410-b2fa-d234c58c8868
* * dropped superfluous column vendor_os.export_counterOliver Tappe2007-05-291-2/+1Star
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1109 95ad53e4-c205-0410-b2fa-d234c58c8868
* * part one of settings file related changes (ticket#122): Oliver Tappe2007-05-281-5/+5
| | | | | | | | - 'settings.default' now lives in /opt/openslx/share - 'settings.local' has been renamed to 'settings' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1103 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added missing quotes around attribute values when creating machine-setup;Oliver Tappe2007-05-221-1/+1
| | | | | | this lead to error messages in stage3-init when some values contain whitespace git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1089 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
* * removed incorrect use of quotemeta() when copying configuration folders,Oliver Tappe2007-05-161-7/+21
| | | | | | | | | | | fixes problem of system- and client-specific files not being copied * Instead of overwriting attribut-files, we now append to them, in order to make use of any settings the user might have provided in the configuration folder (unless, of course, these settings are overruled by the DB). AFAIC, this currently makes sense for the root-pw only. * pass on machine-setup file to mkdxsinitrd, fixes ticket #134 git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1085 95ad53e4-c205-0410-b2fa-d234c58c8868
* * updated PODOliver Tappe2007-05-161-10/+21
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1083 95ad53e4-c205-0410-b2fa-d234c58c8868
* * simplified declaration of base classes via 'use base'Oliver Tappe2007-05-135-28/+12Star
| | | | | | | * simplified checking for correct API-version of modules git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1072 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added utility function followLink() and made use of itOliver Tappe2007-05-131-2/+3
| | | | | | | * reworked search for required kernel modules to be able to return the matching paths to the caller (not currently used though) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1069 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
* * cleanup in DB-modulesOliver Tappe2007-05-115-23/+16Star
| | | | | | * DBD::CSV is now required to be 0.22 or higher (to circumvent problems on SuSE-9.3) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1046 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanupOliver Tappe2007-05-111-1/+1
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1045 95ad53e4-c205-0410-b2fa-d234c58c8868
* * minor cleanup of PODs with respect to Eclipse syntax highlightingOliver Tappe2007-05-093-5/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1036 95ad53e4-c205-0410-b2fa-d234c58c8868
* * reworked construction of export-URI to be delegated into the respectiveOliver Tappe2007-05-071-16/+11Star
| | | | | | | | exporter module, as a result, the NBD-URLs are now correct * added 'nbd' as an alias for the 'nbd-squash' export type git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1024 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added support to exporter modules for passing out the required fs-modulesOliver Tappe2007-05-061-4/+9
| | | | | | | * improved config-demuxer to ask exporter for required fs-mods and pass this to mkdxsinitrd git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1019 95ad53e4-c205-0410-b2fa-d234c58c8868
* * changed ramfs_fsmods and ramfs_nicmods to be (system-only) attributesOliver Tappe2007-05-061-3/+8
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1016 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added new table global_info to DB-schema, in order to support nbd-server-portsOliver Tappe2007-05-064-16/+175
| | | | | | | | * added transaction support to config-DB * added support for incrementing global counters (which live in global_info) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1011 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added option -S to mkdxsinitrd in order to pass in the system nameOliver Tappe2007-05-061-0/+2
| | | | | | | | | | | * replaced $DISTRO by $DISTRO_NAME and $DISTRO_VER * added $SYSTEM_NAME and used it at a couple of places where $DISTRO was used before * removed the two tries to fetch the config-tgz without any system name, as these are never generated by the demuxer anyway. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1007 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed syntax problemsOliver Tappe2007-05-051-2/+3
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1006 95ad53e4-c205-0410-b2fa-d234c58c8868
* * added default values for all attributes to default systemOliver Tappe2007-05-051-0/+40
| | | | | | | * added missing attribute 'dm_allow_shutdown' git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1005 95ad53e4-c205-0410-b2fa-d234c58c8868
* * fixed machine-setup not being generated for client-specific config-TGZsOliver Tappe2007-05-051-6/+7
| | | | git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1004 95ad53e4-c205-0410-b2fa-d234c58c8868