diff options
author | Oliver Tappe | 2008-01-09 14:37:13 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-01-09 14:37:13 +0100 |
commit | 8c64d1a83968d4410eacb2045243e0faca072511 (patch) | |
tree | 645d3dd722e6924cbc367bfacf55927fab9e7f72 /os-plugins | |
parent | * fixed several occurrences of 'attr_'-names (diff) | |
download | core-8c64d1a83968d4410eacb2045243e0faca072511.tar.gz core-8c64d1a83968d4410eacb2045243e0faca072511.tar.xz core-8c64d1a83968d4410eacb2045243e0faca072511.zip |
* added mandatory attributes (active,precedence) to VMware plugin
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1454 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r-- | os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm | 35 |
1 files changed, 35 insertions, 0 deletions
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; |