From 5682bb9479d96428b55513538e9b5db1b72a49a5 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Thu, 29 Jan 2009 19:00:50 +0000 Subject: [PATCH] Added websrv table for VirtualBox support. Also added websrv and vm attributes to defspec for lsdef support. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 81 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 65bc522c6..1a9eae916 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -57,6 +57,19 @@ vm => { 'beacon' => "This flag is used by xCAT to track the state of the identify LED with respect to the VM." } }, +websrv => { + cols => [qw(node port username password comments disable)], + keys => [qw(node)], + table_desc => 'Web service parameters', + descriptions => { + 'node' => 'The web service hostname.', + 'port' => 'The port of the web service.', + 'username' => 'Userid to use to access the web service.', + 'password' => 'Password to use to access the web service.', + 'comments' => 'Any user-written notes.', + 'disable' => "Set to 'yes' or '1' to comment out this row.", + }, + }, bootparams => { cols => [qw(node kernel initrd kcmdline addkcmdline dhcpstatements adddhcpstatements comments disable)], keys => [qw(node)], @@ -1087,7 +1100,73 @@ my @nodeattrs = ( {attr_name => 'room', tabentry => 'nodepos.room', access_tabentry => 'nodepos.node=attr:node', - }); + }, +###################### +# vm table # +###################### + {attr_name => 'vmhost', + tabentry => 'vm.host', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'migrationdest', + tabentry => 'vm.migrationdest', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmstorage', + tabentry => 'vm.storage', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmmemory', + tabentry => 'vm.memory', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmcpus', + tabentry => 'vm.cpus', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmnics', + tabentry => 'vm.nics', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmbootorder', + tabentry => 'vm.bootorder', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmvirtflags', + tabentry => 'vm.virtflags', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmvncport', + tabentry => 'vm.vncport', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmtextconsole', + tabentry => 'vm.textconsole', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmbeacon', + tabentry => 'vm.beacon', + access_tabentry => 'vm.node=attr:node', + }, +###################### +# websrv table # +###################### + {attr_name => 'webport', + only_if => 'nodetype=websrv', + tabentry => 'websrv.port', + access_tabentry => 'websrv.node=attr:node', + }, + {attr_name => 'username', + only_if => 'nodetype=websrv', + tabentry => 'websrv.username', + access_tabentry => 'websrv.node=attr:node', + }, + {attr_name => 'password', + only_if => 'nodetype=websrv', + tabentry => 'websrv.password', + access_tabentry => 'websrv.node=attr:node', + }, + ); ####################