summaryrefslogtreecommitdiffstats
path: root/config-db
diff options
context:
space:
mode:
authorOliver Tappe2006-08-14 17:48:01 +0200
committerOliver Tappe2006-08-14 17:48:01 +0200
commit7d7d00bc2ec81bc693aae4d2d9ea8fecc7a11865 (patch)
treedd65e798014fd76a37781bae58daeab46dc8fd82 /config-db
parent* added table 'vendor_os' which represents an os-"image" as provided by (diff)
downloadcore-7d7d00bc2ec81bc693aae4d2d9ea8fecc7a11865.tar.gz
core-7d7d00bc2ec81bc693aae4d2d9ea8fecc7a11865.tar.xz
core-7d7d00bc2ec81bc693aae4d2d9ea8fecc7a11865.zip
* added confiurable attributes (shared between system, client and group)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@296 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rw-r--r--config-db/ODLX/DBSchema.pm33
1 files changed, 31 insertions, 2 deletions
diff --git a/config-db/ODLX/DBSchema.pm b/config-db/ODLX/DBSchema.pm
index ec6451a6..865e80b1 100644
--- a/config-db/ODLX/DBSchema.pm
+++ b/config-db/ODLX/DBSchema.pm
@@ -13,7 +13,28 @@ $VERSION = 0.01;
use vars qw($DbSchema %DbSchemaHistory);
-# TODO: copy attributes from installer/default_files/dhcp.conf
+# configurable attributes for system, client and group:
+my @sharedAttributes = (
+ 'attrDesktopSession:s.128',
+ 'attrDomainName:s.64',
+ 'attrDomainNameServers:s.128',
+ 'attrFontServers:s.128',
+ 'attrHwGraphic:s.64',
+ 'attrHwMonitor:s.64',
+ 'attrHwMouse:s.64',
+ 'attrLanguage:s.64',
+ 'attrLprServers:s.128',
+ 'attrNetbiosWorkgroup:s.64',
+ 'attrNisDomain:s.64',
+ 'attrNisServers:s.128',
+ 'attrNtpServers:s.128',
+ 'attrStartRwhod:b',
+ 'attrStartSnmp:b',
+ 'attrStartX:s.64',
+ 'attrStartXdmcp:s.64',
+ 'attrTexEnable:b',
+ 'attrVmware:b',
+);
################################################################################
### DB-schema definition
@@ -59,6 +80,7 @@ $DbSchema = {
'kernel_params:s.512', # kernel-param string for pxe
'initramfs:s.128', # name of initrd file
'hidden:b', # hidden systems won't be offered for booting
+ @sharedAttributes,
],
'client' => [
# a client is a PC booting via net
@@ -68,6 +90,8 @@ $DbSchema = {
'mac:s.20', # MAC of NIC used for booting
'descr:s.1024', # internal description (for admins)
'boot_type:s.20', # type of remote boot procedure (PXE, ...)
+ 'unbootable:b', # unbootable clients simply won't boot
+ @sharedAttributes,
],
'client_system_ref' => [
# clients referring to the systems they should offer for booting
@@ -75,10 +99,15 @@ $DbSchema = {
'system_id:fk', # foreign key
],
'group' => [
- # a group encapsulates a set of clients as one entity
+ # a group encapsulates a set of clients as one entity, managing
+ # a group-specific attribute set. All the different attribute
+ # sets a client inherits via group membership are folded into
+ # one resulting attribute set with respect to each group's priority.
'id:pk', # primary key
'name:s.128', # name of group
'descr:s.1024', # internal description (for admins)
+ 'priority:i', # priority, used for order in group-list
+ @sharedAttributes,
],
'group_client_ref' => [
# groups referring to their clients