wum.git
9 years agoUpdate copyright notice for 2010. master
Maximilian Wilhelm [Mon, 11 Oct 2010 13:22:08 +0000 (15:22 +0200)]
Update copyright notice for 2010.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

9 years agoFix absolut path name on timetable page.
Maximilian Wilhelm [Mon, 11 Oct 2010 13:21:13 +0000 (15:21 +0200)]
Fix absolut path name on timetable page.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

9 years agoUpdate template basedir path to value supposed by packaging.
Maximilian Wilhelm [Thu, 30 Sep 2010 16:50:55 +0000 (18:50 +0200)]
Update template basedir path to value supposed by packaging.

  This is meant as a quick fix, to make the packages work again.
  The path should be configureable in the future.

  refs #16

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUpdated exmaple apache configuration to stick to Debian conventions.
Maximilian Wilhelm [Sat, 11 Apr 2009 02:55:24 +0000 (04:55 +0200)]
Updated exmaple apache configuration to stick to Debian conventions.

  Web pages and related files are supposed to be found under /usr/share/wum
  on Debian systems instead of the old /srv/wum/... path.

  redmine refs #4

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdd exaples apache2 config snippet.
Maximilian Wilhelm [Sat, 11 Apr 2009 02:45:18 +0000 (04:45 +0200)]
Add exaples apache2 config snippet.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUpdated visible copyright notice to include 2009.
Maximilian Wilhelm [Sat, 11 Apr 2009 02:42:02 +0000 (04:42 +0200)]
Updated visible copyright notice to include 2009.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoFix default paths in wum.conf and remove extension config stanza.
Maximilian Wilhelm [Sat, 11 Apr 2009 02:37:52 +0000 (04:37 +0200)]
Fix default paths in wum.conf and remove extension config stanza.

refs #4

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoRemove hardcoded path information from 'wum_boot' and 'wum_shutdown'
Maximilian Wilhelm [Sat, 11 Apr 2009 02:00:46 +0000 (04:00 +0200)]
Remove hardcoded path information from 'wum_boot' and 'wum_shutdown'

  Don't assume the server path of the RPC scripts is /rpc/{ui,client} as
  we can't know where the user will install WUM.
  Let him specify the full path via wum.conf.

  refs #4

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoReturn an empty string instead of an undefined value to RPC call in Agent::Daemon
Maximilian Wilhelm [Sat, 11 Apr 2009 01:57:50 +0000 (03:57 +0200)]
Return an empty string instead of an undefined value to RPC call in Agent::Daemon

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoDon't use undefined value in RPC responses. Never ever.
Maximilian Wilhelm [Sat, 11 Apr 2009 01:48:50 +0000 (03:48 +0200)]
Don't use undefined value in RPC responses. Never ever.

  The Frontier::RPC2 module does not check for undefined values when
  determining the data types. Maybe other libraries do the same -
  which I hope is not true. To be sure, send empty strings instead
  of undefined values, as the values in question are ignored nevertheless.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoRemoved old RPC::Result module.
Maximilian Wilhelm [Sat, 11 Apr 2009 01:43:29 +0000 (03:43 +0200)]
Removed old RPC::Result module.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoFix comments in RPC::Utils module.
Maximilian Wilhelm [Sat, 11 Apr 2009 01:42:49 +0000 (03:42 +0200)]
Fix comments in RPC::Utils module.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoFrontier RPC v1.01 to standard version transition
Maximilian Wilhelm [Sat, 11 Apr 2009 01:21:00 +0000 (03:21 +0200)]
Frontier RPC v1.01 to standard version transition

  Don't rely on any special feature which has been added unofficially to the
  Frontier RPC library, especially the 'handle_perl_object' option which
  breaks the XML-RPC protocol standard.

  The syslog logging and ip filter options are still in use but will only
  be ignored if the unpatched libray is used.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUse simple hash instead of RPC::Result as RPC data structure.
Maximilian Wilhelm [Sat, 11 Apr 2009 01:08:58 +0000 (03:08 +0200)]
Use simple hash instead of RPC::Result as RPC data structure.

  This simple change makes the WakeUpManager RPC stuff comply to the XML-RPC
  standard again. No hacked XML-RPC library is neccessary anymore.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUpdated page logic modules to use relativ paths to JavaScript files.
Maximilian Wilhelm [Sat, 11 Apr 2009 00:36:03 +0000 (02:36 +0200)]
Updated page logic modules to use relativ paths to JavaScript files.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMigrate JavaScript files to use relative paths. Moved images acordingly.
Maximilian Wilhelm [Sat, 11 Apr 2009 00:34:39 +0000 (02:34 +0200)]
Migrate JavaScript files to use relative paths. Moved images acordingly.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUse relativ paths for stylesheet and command JavaScript file in main template.
Maximilian Wilhelm [Sat, 11 Apr 2009 00:26:37 +0000 (02:26 +0200)]
Use relativ paths for stylesheet and command JavaScript file in main template.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoQuery user name from WWW:Params. Ever.
Maximilian Wilhelm [Fri, 10 Apr 2009 23:55:34 +0000 (01:55 +0200)]
Query user name from WWW:Params. Ever.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUse relative paths in menu generated in WWW::Page.
Maximilian Wilhelm [Fri, 10 Apr 2009 23:45:18 +0000 (01:45 +0200)]
Use relative paths in menu generated in WWW::Page.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHonor 'superseed_username_to' option regardless of username given from apache.
Maximilian Wilhelm [Fri, 10 Apr 2009 23:42:46 +0000 (01:42 +0200)]
Honor 'superseed_username_to' option regardless of username given from apache.

  The 'superseed_username_to' WWW configuration options should superseed
  the username in WUM even if there was no one before as there might no
  be authentification method activated in the apache webserver.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoRemoved 'END' block from DB::HostDB which will never be reached.
Maximilian Wilhelm [Fri, 10 Apr 2009 23:41:25 +0000 (01:41 +0200)]
Removed 'END' block from DB::HostDB which will never be reached.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdded TODO file to track this which should be done.
Maximilian Wilhelm [Mon, 16 Mar 2009 18:10:31 +0000 (19:10 +0100)]
Added TODO file to track this which should be done.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMake WakeUpManager GPLv2 GPL_v2 v0.9.3
Maximilian Wilhelm [Sun, 15 Mar 2009 14:02:18 +0000 (15:02 +0100)]
Make WakeUpManager GPLv2

  Added GPLv2 stanza into header of all modules and scripts.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoPut useful description and filenames into example config file headers
Maximilian Wilhelm [Tue, 10 Mar 2009 18:49:11 +0000 (19:49 +0100)]
Put useful description and filenames into example config file headers

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoPut at 'How to use' comment into 'ext_nagios.conf'
Maximilian Wilhelm [Tue, 10 Mar 2009 18:44:18 +0000 (19:44 +0100)]
Put at 'How to use' comment into 'ext_nagios.conf'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoPut example Nagios extension config into 'ext_nagios.conf'
Maximilian Wilhelm [Tue, 10 Mar 2009 18:36:30 +0000 (19:36 +0100)]
Put example Nagios extension config into 'ext_nagios.conf'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoFollow GetHostInfo -> ClientAcceptor rename in 'client' RPC script.
Maximilian Wilhelm [Tue, 10 Mar 2009 04:08:25 +0000 (05:08 +0100)]
Follow GetHostInfo -> ClientAcceptor rename in 'client' RPC script.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoUpdated WUM::Cmd::ClientAcceptor to use Nagios extension
Maximilian Wilhelm [Tue, 10 Mar 2009 04:04:52 +0000 (05:04 +0100)]
Updated WUM::Cmd::ClientAcceptor to use Nagios extension

  This is the frst implementation of a RPC function providing the possibility
  for a client host to tell the WUM server that it will shutdown and therefore
  place a scheduled downtime in the Nagios system.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdd first shot of Nagios extension for WakeUpManager
Maximilian Wilhelm [Tue, 10 Mar 2009 04:02:09 +0000 (05:02 +0100)]
Add first shot of Nagios extension for WakeUpManager

  The WakeUpUpManager::Ext::Nagios modules is based on the perl script
  writtern by Lars Michelsen published under the MIT license.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoFixed some typos in Nagios ext. stanza in default wum.conf
Maximilian Wilhelm [Tue, 10 Mar 2009 03:58:35 +0000 (04:58 +0100)]
Fixed some typos in Nagios ext. stanza in default wum.conf

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoLet WUM::Common::Utils::get_next_event calculate time until next event.
Maximilian Wilhelm [Tue, 10 Mar 2009 02:27:43 +0000 (03:27 +0100)]
Let WUM::Common::Utils::get_next_event calculate time until next event.

  As this function has been introducted as helper function for the Nagios
  extension preparation to be able to calculate the time until the next
  boot event, let 'get_next_event()' calculate the time (in minutes) itself.

  This drops the requirement to calculate it by nearly the same algorithm
  afterwards. (So be green and save some cpu cyles :)

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMerge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum
Maximilian Wilhelm [Tue, 10 Mar 2009 02:27:23 +0000 (03:27 +0100)]
Merge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum

10 years agoFix input sanity check in UpdateTimetable page.
Maximilian Wilhelm [Tue, 10 Mar 2009 02:24:18 +0000 (03:24 +0100)]
Fix input sanity check in UpdateTimetable page.

  It's neccessary to check the time values entered in the UpdateTimetable
  page in temporal order to be able to check for overlapping entries.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdded 'get_next_event()' to WakeUpManager::Common::Utils
Maximilian Wilhelm [Tue, 10 Mar 2009 01:11:20 +0000 (02:11 +0100)]
Added 'get_next_event()' to WakeUpManager::Common::Utils

  The new function
    get_next_event (\%timetable ; type ) : \{ action, day, time }
  extracts the next event in temporal order from a timetable.
  The optional type parameter can be used to filter for events
  of a specific type.

  The function is exported under the 'state' tag.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdd example config stanza for Nagios extension to wum.conf.
Maximilian Wilhelm [Mon, 9 Mar 2009 22:59:56 +0000 (23:59 +0100)]
Add example config stanza for Nagios extension to wum.conf.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoAdded 'get_extension_opts()' to WakeUpManager::Config
Maximilian Wilhelm [Mon, 9 Mar 2009 22:19:21 +0000 (23:19 +0100)]
Added 'get_extension_opts()' to WakeUpManager::Config

  The new function 'get_extension_opts (Extension_name)' allows retrieving
  configuration options for WakeUpManager extensions like Nagios binding
  which will be implemented in following commits.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoRenamd Cmd::GetHostInfo to Cmd::ClientAcceptor
Maximilian Wilhelm [Mon, 9 Mar 2009 17:41:20 +0000 (18:41 +0100)]
Renamd Cmd::GetHostInfo to Cmd::ClientAcceptor

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoLet wum_boot_admin accept hostgroup names as parameter, too
Maximilian Wilhelm [Thu, 5 Mar 2009 17:17:42 +0000 (18:17 +0100)]
Let wum_boot_admin accept hostgroup names as parameter, too

  The wum_boot_admin script which can be used to boot hosts unconditionally
  (as in without ACL check) does now support hostgroup names as parameter.

  If called with '@hostgroup_name' as parameter it will boot all host of this
  hostgroup. Hostgroups and hosts can be mixed in the parameter list.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMerge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum
Maximilian Wilhelm [Tue, 27 Jan 2009 23:34:21 +0000 (00:34 +0100)]
Merge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum

10 years agoLet 'wum_shutdown' honor the 'disable_shutdown' flag.
Maximilian Wilhelm [Tue, 27 Jan 2009 22:49:29 +0000 (23:49 +0100)]
Let 'wum_shutdown' honor the 'disable_shutdown' flag.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHostDB: Update function 'get_host_state()' to extract shutdown override information
Maximilian Wilhelm [Tue, 27 Jan 2009 22:34:14 +0000 (23:34 +0100)]
HostDB: Update function 'get_host_state()' to extract shutdown override information

  The 'get_host_state()' function now extracts the shutdown override
  information from the hostgroup the host is in or the first super
  hostgroup found in the tree with the 'disable_shutdown' flag set.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHostDB: Add 'get_hostgroup_shutdownoverride()' function to query new disable_shutdown...
Maximilian Wilhelm [Tue, 27 Jan 2009 22:26:16 +0000 (23:26 +0100)]
HostDB: Add 'get_hostgroup_shutdownoverride()' function to query new disable_shutdown field.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoDB: New comlumn 'disable_shutdown' in 'hostgroup' table
Maximilian Wilhelm [Tue, 27 Jan 2009 21:54:39 +0000 (22:54 +0100)]
DB: New comlumn 'disable_shutdown' in 'hostgroup' table

  This an the following commits will introduce the new shutdown override
  feature in WUM.

  Via the new 'disable_shutdown' column (boolean value) it's possible to
  prevent all host of the corresponding hostgroup from being shutdown.
  This might come in handy in case of maintainance of a group of hosts
  or all your clients.

  The 'disable_shutdown' flag will be inherited to all hostgroups in the
  hostgroup tree below the group with this flag set.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHostDB: Added new function get_preset_config_sets()
Maximilian Wilhelm [Mon, 26 Jan 2009 15:34:48 +0000 (16:34 +0100)]
HostDB: Added new function get_preset_config_sets()

  The new function 'get_preset_config_sets()' returns a reference to a hash
  containng the csid and name of all known config_sets which are marked as
  preset.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHostDB: Fixed typo introduced in 18b1c500e5e7aafcaa3fcfdba4f661e55ab1676f
Maximilian Wilhelm [Mon, 26 Jan 2009 15:33:30 +0000 (16:33 +0100)]
HostDB: Fixed typo introduced in 18b1c500e5e7aafcaa3fcfdba4f661e55ab1676f

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoHostDB: Removed redundant right name specification.
Maximilian Wilhelm [Mon, 26 Jan 2009 15:22:37 +0000 (16:22 +0100)]
HostDB: Removed redundant right name specification.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoDon't log name of logged in user in wum_shutdown for Windows.
Maximilian Wilhelm [Tue, 13 Jan 2009 00:06:45 +0000 (01:06 +0100)]
Don't log name of logged in user in wum_shutdown for Windows.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFix simple and silly bugs in WUM:WWW and WUM:WWW::Page introduced in last change
Maximilian Wilhelm [Tue, 7 Oct 2008 13:15:13 +0000 (15:15 +0200)]
Fix simple and silly bugs in WUM:WWW and WUM:WWW::Page introduced in last change

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed '501' in /rpc/client caused by programming error.
Maximilian Wilhelm [Mon, 6 Oct 2008 16:30:43 +0000 (18:30 +0200)]
Fixed '501' in /rpc/client caused by programming error.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated 'UpdateTimetable' page to fit to new templates.
Maximilian Wilhelm [Mon, 6 Oct 2008 15:07:40 +0000 (17:07 +0200)]
Updated 'UpdateTimetable' page to fit to new templates.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed typo in wum_boot
Maximilian Wilhelm [Mon, 6 Oct 2008 15:01:48 +0000 (17:01 +0200)]
Fixed typo in wum_boot

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded examples stanzas to wum.conf regarding new WWW options.
Maximilian Wilhelm [Mon, 6 Oct 2008 15:00:57 +0000 (17:00 +0200)]
Added examples stanzas to wum.conf regarding new WWW options.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoDon't read WUM::Config separately in WUM::WWW::Page
Maximilian Wilhelm [Mon, 6 Oct 2008 14:55:44 +0000 (16:55 +0200)]
Don't read WUM::Config separately in WUM::WWW::Page

  WakeUpManager::WWW::Page now uses the WakeUpManager::Config object
  instanciated in WakeUpManager::WWW and stored in WakeUpManager::WWW::Params.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoStore WakeUpManager::Config object in WakeUpManager::WWW::Params
Maximilian Wilhelm [Mon, 6 Oct 2008 14:55:04 +0000 (16:55 +0200)]
Store WakeUpManager::Config object in WakeUpManager::WWW::Params

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoRead WUM::Config in WUM:WWW an honor new config options
Maximilian Wilhelm [Mon, 6 Oct 2008 14:46:42 +0000 (16:46 +0200)]
Read WUM::Config in WUM:WWW an honor new config options

  This change updates WakeUpManager::WWW class to honor the new config
  options WWW->accept_REALMs and WWW->superseed_username_to.

  accept_REALMs expects a list of valid Kerberos REALMs which will be
  checked against the REALM part of the username given by the webserver.
  (Assuming kerberos based authentification)

  superseed_username_to expects a username as parameter which will be
  used instead of the name of the authentificated user.
  This comes in handy if all you users should have the same right to e.g.
  only boot all connected hosts.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded 'get_WWW_opts ()' to WakeUpManager::Config.
Maximilian Wilhelm [Mon, 6 Oct 2008 14:42:05 +0000 (16:42 +0200)]
Added 'get_WWW_opts ()' to WakeUpManager::Config.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded virtual hostgroup 'ALL' to Web select list.
Maximilian Wilhelm [Mon, 15 Sep 2008 13:20:26 +0000 (15:20 +0200)]
Added virtual hostgroup 'ALL' to Web select list.

  The virtual hostgroup 'ALL' will be printed on top of the select list.
  On select all hosts the user has the current right on will be loaded into
  the host select list.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed JS error in page HostState.
Maximilian Wilhelm [Tue, 9 Sep 2008 17:13:46 +0000 (19:13 +0200)]
Fixed JS error in page HostState.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUnified and finished AJAX stuff.
Maximilian Wilhelm [Mon, 1 Sep 2008 05:54:19 +0000 (07:54 +0200)]
Unified and finished AJAX stuff.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoPushed content into TMPL_VAR content and updated 'en' templates for AJAX-v2 sites.
Maximilian Wilhelm [Mon, 1 Sep 2008 03:34:34 +0000 (05:34 +0200)]
Pushed content into TMPL_VAR content and updated 'en' templates for AJAX-v2 sites.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoForgot new AJAX script for 'ShowTimetable' page in last commit.
Maximilian Wilhelm [Mon, 1 Sep 2008 03:12:40 +0000 (05:12 +0200)]
Forgot new AJAX script for 'ShowTimetable' page in last commit.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpgraded 'ShowTimetable' page to allow AJAX and POST methods.
Maximilian Wilhelm [Mon, 1 Sep 2008 03:12:08 +0000 (05:12 +0200)]
Upgraded 'ShowTimetable' page to allow AJAX and POST methods.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpgraded 'result_box' template with more messages and changed usage.
Maximilian Wilhelm [Mon, 1 Sep 2008 03:11:11 +0000 (05:11 +0200)]
Upgraded 'result_box' template with more messages and changed usage.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoDon't use content_less mode in AJAX scripts.
Maximilian Wilhelm [Mon, 1 Sep 2008 03:10:20 +0000 (05:10 +0200)]
Don't use content_less mode in AJAX scripts.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoChange dependency between 'content_less' and 'ajax_mode' vs. normal mode in WUM::WWW
Maximilian Wilhelm [Mon, 1 Sep 2008 03:08:33 +0000 (05:08 +0200)]
Change dependency between 'content_less' and 'ajax_mode' vs. normal mode in WUM::WWW

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded new infrastructure for AJAX script and upgrade 'boot_host' to use it.
Maximilian Wilhelm [Fri, 29 Aug 2008 02:10:00 +0000 (04:10 +0200)]
Added new infrastructure for AJAX script and upgrade 'boot_host' to use it.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoMake use of new 'result_box_complete' template in 'en' templates.
Maximilian Wilhelm [Fri, 29 Aug 2008 02:09:00 +0000 (04:09 +0200)]
Make use of new 'result_box_complete' template in 'en' templates.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded 'result_box*' templates for english language.
Maximilian Wilhelm [Fri, 29 Aug 2008 02:07:24 +0000 (04:07 +0200)]
Added 'result_box*' templates for english language.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoRemovedd german 'Ergebnis' box titles from JavaScript files
Maximilian Wilhelm [Fri, 29 Aug 2008 00:33:21 +0000 (02:33 +0200)]
Removedd german 'Ergebnis' box titles from JavaScript files

  This commit removed ever piece of german wording from the JS files
  in an attemp to build a fully translated WebUI. AJAX stuff will follow.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoReplaced all result boxes by an include to 'result_box_complete'.
Maximilian Wilhelm [Fri, 29 Aug 2008 00:32:35 +0000 (02:32 +0200)]
Replaced all result boxes by an include to 'result_box_complete'.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded the templates 'result_box' and 'result_box_complete'.
Maximilian Wilhelm [Fri, 29 Aug 2008 00:30:21 +0000 (02:30 +0200)]
Added the templates 'result_box' and 'result_box_complete'.

  The template 'result_box' contains a result box with translated
  header and another box with id 'result_box' for content.

  The 'result_box_complete' include the 'result_box' template
  and puts a '<div id="result_box">' around the former on.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated host_select include template to print '<br>' after host_select
Maximilian Wilhelm [Thu, 28 Aug 2008 19:17:31 +0000 (21:17 +0200)]
Updated host_select include template to print '<br>' after host_select

  This small changes just moves the '<br>' out of the '<div>' block to
  ensure the desired layout even if the host_select box has been reloaded
  using AJAX.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoPush host_db_h from WakeUpManager::WWW::Page into Page modules.
Maximilian Wilhelm [Thu, 28 Aug 2008 19:14:42 +0000 (21:14 +0200)]
Push host_db_h from WakeUpManager::WWW::Page into Page modules.

  As WWW::Page needs a HostDB connection anyway, there's no point in
  setting up a second connection in the page logic modules, so just
  push the existing handle into the page modules.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded 'append_host_state' param to WWW::Utils::'gen_pretty_host_select()'
Maximilian Wilhelm [Wed, 27 Aug 2008 19:15:01 +0000 (21:15 +0200)]
Added 'append_host_state' param to WWW::Utils::'gen_pretty_host_select()'

  The new param 'append_host_state' set to a true value enables the printing
  of the boot and shutdown state after each host in the host select element
  of the WUM pages.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoMore HTML 4.01 compliance.
Maximilian Wilhelm [Wed, 27 Aug 2008 15:52:33 +0000 (17:52 +0200)]
More HTML 4.01 compliance.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed translation error in BootHost page.
Maximilian Wilhelm [Wed, 27 Aug 2008 15:52:02 +0000 (17:52 +0200)]
Fixed translation error in BootHost page.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoSatisfy HTML 4.01 spec for hidden_form_data in UpdateTimetable page.
Maximilian Wilhelm [Wed, 27 Aug 2008 15:31:18 +0000 (17:31 +0200)]
Satisfy HTML 4.01 spec for hidden_form_data in UpdateTimetable page.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoSatisfy HTML 4.01 strict conventions
Maximilian Wilhelm [Wed, 27 Aug 2008 15:22:13 +0000 (17:22 +0200)]
Satisfy HTML 4.01 strict conventions

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoMerge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum
Maximilian Wilhelm [Wed, 27 Aug 2008 15:07:15 +0000 (17:07 +0200)]
Merge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum

11 years agoUpdated DB schema to indicate UNIQUE INDEX'es
Maximilian Wilhelm [Wed, 27 Aug 2008 15:04:35 +0000 (17:04 +0200)]
Updated DB schema to indicate UNIQUE INDEX'es

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded RULE 'get_config_set_csid_seq' on INSERT to config_set.
Maximilian Wilhelm [Wed, 27 Aug 2008 15:03:45 +0000 (17:03 +0200)]
Added RULE 'get_config_set_csid_seq' on INSERT to config_set.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated HTML Doctype specification.
Maximilian Wilhelm [Wed, 27 Aug 2008 14:56:34 +0000 (16:56 +0200)]
Updated HTML Doctype specification.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoWum-DB-Bild pimped by Visio.
Maximilian Wilhelm [Sat, 23 Aug 2008 17:18:45 +0000 (19:18 +0200)]
Wum-DB-Bild pimped by Visio.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoRemoved superflous table 'hostgroup_host' from HostDB.
Maximilian Wilhelm [Sun, 17 Aug 2008 20:13:23 +0000 (22:13 +0200)]
Removed superflous table 'hostgroup_host' from HostDB.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoSpell WakeUpManager in HTML menu without spaces, too.
Maximilian Wilhelm [Thu, 17 Jul 2008 17:50:39 +0000 (19:50 +0200)]
Spell WakeUpManager in HTML menu without spaces, too.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUnified all occurences of "WakeUpManager" to this spelling and improved <title>
Maximilian Wilhelm [Thu, 17 Jul 2008 17:31:39 +0000 (19:31 +0200)]
Unified all occurences of "WakeUpManager" to this spelling and improved <title>

  All occurences of "WakeUpManager" are now spelled this way.
  If the page defines a subtitle it will be appended to the <title> in the
  format "WakeUpManager - <h2>".

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed typoes in About page.
Maximilian Wilhelm [Thu, 17 Jul 2008 17:22:11 +0000 (19:22 +0200)]
Fixed typoes in About page.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoImproved text in templates.
Maximilian Wilhelm [Thu, 17 Jul 2008 17:13:26 +0000 (19:13 +0200)]
Improved text in templates.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded second new line after host select in german template.
Maximilian Wilhelm [Thu, 17 Jul 2008 16:44:38 +0000 (18:44 +0200)]
Added second new line after host select in german template.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated wum_user tool to reflect latest changes in DB::HostDB.
Maximilian Wilhelm [Thu, 17 Jul 2008 16:28:57 +0000 (18:28 +0200)]
Updated wum_user tool to reflect latest changes in DB::HostDB.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated 'give_user_rights_on_host{,group}' in DB:HostDB
Maximilian Wilhelm [Thu, 17 Jul 2008 16:20:37 +0000 (18:20 +0200)]
Updated 'give_user_rights_on_host{,group}' in DB:HostDB

  Improved code of both methods and changed
  'give_user_rights_on_hostgroups (uid, @hg_ids, rights)' to
  'give_user_rights_on_hostgroup (uid, hg_id, rights)'.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoSwapped hostgroup and host select in templates and improved internal handling
Maximilian Wilhelm [Thu, 17 Jul 2008 15:51:58 +0000 (17:51 +0200)]
Swapped hostgroup and host select in templates and improved internal handling

  Put the hostgroup select before host select to provide read/click flow
  compatible interface.

  Pushed hostgroup/host select HTML code into 'host_select.tmpl' file
  which is included in all page templates.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded administrative tool 'wum_boot_admin' to boot host uncondionally.
Maximilian Wilhelm [Thu, 17 Jul 2008 13:52:29 +0000 (15:52 +0200)]
Added administrative tool 'wum_boot_admin' to boot host uncondionally.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoUpdated view 'v_host' to include the hostgroup name per host.
Maximilian Wilhelm [Thu, 17 Jul 2008 13:46:17 +0000 (15:46 +0200)]
Updated view 'v_host' to include the hostgroup name per host.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded 'wum_user' script to manage user rights in WUM database.
Maximilian Wilhelm [Thu, 17 Jul 2008 13:43:43 +0000 (15:43 +0200)]
Added 'wum_user' script to manage user rights in WUM database.

  The new administrative tool 'wum_user' allows easy right management
  based on account types and hosts.
  Account types can freely be defined in the WakeUpManager configuration
  file to allow simple mapping of different types of accounts (students,
  employees, admins, ...) to rights on specific hostgroups.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoAdded 'give_user_rights_on_host()' to DB::HostDB
Maximilian Wilhelm [Thu, 17 Jul 2008 13:42:27 +0000 (15:42 +0200)]
Added 'give_user_rights_on_host()' to DB::HostDB

  The new function 'give_user_rights_on_host (uid, host_id, \@rights)'
  can be used to easily set user rights on host basis in WUM db.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoFixed access on undefined env variable 'LANG' in wum_boot.
Maximilian Wilhelm [Thu, 10 Jul 2008 00:46:53 +0000 (02:46 +0200)]
Fixed access on undefined env variable 'LANG' in wum_boot.

  Check if $ENV{'lang'} is defined before reading it's contents.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoBugfix: Validate minute part of times in DB:HostDB to be <= 59
Maximilian Wilhelm [Mon, 7 Jul 2008 09:00:12 +0000 (11:00 +0200)]
Bugfix: Validate minute part of times in DB:HostDB to be <= 59

  This commit corrects the minute validation in the UpdateTimetable page
  to check for values >= 0 and <= 59 instead of < 59.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

11 years agoMerge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum
Maximilian Wilhelm [Sat, 5 Jul 2008 22:19:04 +0000 (00:19 +0200)]
Merge branch 'master' of ssh://mwilhelm@kepler/plato/user/mwilhelm/wum/wum

11 years agoUpdated page 'BootHost' to work without AJAX.
Maximilian Wilhelm [Sat, 5 Jul 2008 22:18:43 +0000 (00:18 +0200)]
Updated page 'BootHost' to work without AJAX.

  The page 'BootHost' will now use a usual POST request to send the
  the request and switch automagically to AJAX if JavaScript is
  activated in the users browser.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>