summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin
diff options
context:
space:
mode:
authorOliver Tappe2008-02-23 19:44:04 +0100
committerOliver Tappe2008-02-23 19:44:04 +0100
commit494241071bd94d5e4b87ba113753642e57090af8 (patch)
tree3da20fea677f6be344826c3b599528022e8ad590 /os-plugins/plugins/vmchooser/OpenSLX/OSPlugin
parent* Instead of giving up when a plugin folder does not contain the corresponding (diff)
downloadcore-494241071bd94d5e4b87ba113753642e57090af8.tar.gz
core-494241071bd94d5e4b87ba113753642e57090af8.tar.xz
core-494241071bd94d5e4b87ba113753642e57090af8.zip
* adjusted plugin-API according to recent discussion with Volker:
+ dropped pre- and post-methods as they are not really needed, since ... + we now bind-mount /opt/openslx into /mnt/openslx of the vendor-OS chroot, so plugins can copy any required files from there * cleaned up existing plugin implementations * improved documentation for plugin developers (available via 'perldoc os-plugins/OpenSLX/OSPlugins/Base.pm'). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1570 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/OpenSLX/OSPlugin')
-rw-r--r--os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm43
1 files changed, 5 insertions, 38 deletions
diff --git a/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm b/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
index 3d26ef55..406e18e6 100644
--- a/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
+++ b/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm
@@ -8,6 +8,9 @@
#
# General information about OpenSLX can be found at http://openslx.org/
# -----------------------------------------------------------------------------
+# vmchooser.pm
+# - allows user to pick from a list of virtual machin images
+# -----------------------------------------------------------------------------
package OpenSLX::OSPlugin::vmchooser;
use strict;
@@ -18,11 +21,6 @@ use base qw(OpenSLX::OSPlugin::Base);
use OpenSLX::Basics;
use OpenSLX::Utils;
-################################################################################
-# if you have any questions regarding the concept of OS-plugins and their
-# implementation, please drop a mail to: ot@openslx.com, or join the IRC-channel
-# '#openslx' (on freenode).
-################################################################################
sub new
{
my $class = shift;
@@ -40,22 +38,17 @@ sub getInfo
return {
description => unshiftHereDoc(<<' End-of-Here'),
- this plugin will over a list of different, chooseable virtualmachine images
+ allows user to pick from a list of different virtual machine images
End-of-Here
mustRunAfter => [],
};
}
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
'vmchooser::active' => {
applies_to_systems => 0,
applies_to_clients => 0,
@@ -66,7 +59,6 @@ sub getAttrInfo
content_descr => '1 means active - 0 means inactive',
default => '1',
},
- # attribute 'precedence' is mandatory for all plugins
'vmchooser::precedence' => {
applies_to_systems => 1,
applies_to_clients => 1,
@@ -80,29 +72,4 @@ sub getAttrInfo
};
}
-sub preInstallationPhase
-{ # called before chrooting into vendor-OS root, should be used if any files
- # have to be downloaded outside of the chroot (which might be necessary
- # if the required files can't be installed via the meta-packager)
- my $self = shift;
- my $pluginRepositoryPath = shift;
- # the folder where the stage1-plugin should store all files
- # required by the corresponding stage3 runlevel script
- my $pluginTempPath = shift;
- # a temporary playground that will be cleaned up automatically
-
- # uncomment the following if you need to copy files
- ## get path of files we need to install
- #my $pluginName = $self->{'name'};
-
- ##my $pluginFilesPath
- # = "$openslxConfig{'base-path'}/lib/plugins/$pluginName/files";
-
- ## copy all needed files now
- #my @files = ("file1", "file2");
- #foreach my $file (@files) {
- # copyFile("$pluginFilesPath/$file", "$pluginRepositoryPath");
- #}
-}
-
1;