From 8c64d1a83968d4410eacb2045243e0faca072511 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Wed, 9 Jan 2008 13:37:13 +0000 Subject: * added mandatory attributes (active,precedence) to VMware plugin git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1454 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/VMware/OpenSLX/OSPlugin/VMware.pm | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm b/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm index f764722e..2dc141cc 100644 --- a/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm +++ b/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm @@ -42,4 +42,39 @@ sub getInfo }; } +sub getAttrInfo +{ # returns a hash-ref with information about all attributes supported + # by this specific plugin + my $self = shift; + + # This default configuration will be added as attributes to the default + # system, such that it can be overruled for any specific system by means + # of slxconfig. + return { + # attribute 'active' is mandatory for all plugins + 'vmware::active' => { + applies_to_systems => 1, + applies_to_clients => 0, + description => unshiftHereDoc(<<' End-of-Here'), + should the 'VMware'-plugin be executed during boot? + End-of-Here + content_regex => qr{^(0|1)$}, + content_descr => '1 means active - 0 means inactive', + default => '1', + }, + # attribute 'precedence' is mandatory for all plugins + 'vmware::precedence' => { + applies_to_systems => 1, + applies_to_clients => 0, + description => unshiftHereDoc(<<' End-of-Here'), + the execution precedence of the 'VMware' plugin + End-of-Here + content_regex => qr{^\d\d$}, + content_descr => 'allowed range is from 01-99', + default => 50, + }, + + }; +} + 1; -- cgit v1.2.3-55-g7522