summaryrefslogtreecommitdiffstats
path: root/config-db
diff options
context:
space:
mode:
authorOliver Tappe2008-01-09 14:38:04 +0100
committerOliver Tappe2008-01-09 14:38:04 +0100
commitdce5e488056c71657aab0fe7161c17321c301aed (patch)
tree8b95b29829f73184da8bc0a7b35064d1753b6af5 /config-db
parent* added mandatory attributes (active,precedence) to VMware plugin (diff)
downloadcore-dce5e488056c71657aab0fe7161c17321c301aed.tar.gz
core-dce5e488056c71657aab0fe7161c17321c301aed.tar.xz
core-dce5e488056c71657aab0fe7161c17321c301aed.zip
* the config-demuxer now only demuxes attributes of active plugins that have
been installed into the current system's vendor-OS. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1455 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rw-r--r--config-db/OpenSLX/ConfigDB.pm3
-rwxr-xr-xconfig-db/slxconfig-demuxer8
2 files changed, 9 insertions, 2 deletions
diff --git a/config-db/OpenSLX/ConfigDB.pm b/config-db/OpenSLX/ConfigDB.pm
index 329473ce..2acffa91 100644
--- a/config-db/OpenSLX/ConfigDB.pm
+++ b/config-db/OpenSLX/ConfigDB.pm
@@ -2613,6 +2613,9 @@ sub aggregatedSystemFileInfoFor
);
}
$info->{'vendor-os'} = $vendorOS;
+
+ my @installedPlugins = $self->fetchInstalledPlugins($vendorOS->{id});
+ $info->{'installed-plugins'} = \@installedPlugins;
# check if the specified kernel file really exists (follow links while
# checking) and if not, find the newest kernel file that is available.
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer
index 485a7545..2085461e 100755
--- a/config-db/slxconfig-demuxer
+++ b/config-db/slxconfig-demuxer
@@ -45,7 +45,6 @@ use lib "$FindBin::RealBin";
use OpenSLX::Basics;
use OpenSLX::ConfigDB qw(:support);
use OpenSLX::ConfigFolder;
-use OpenSLX::OSPlugin::Engine;
use OpenSLX::Utils;
my $pxeDefaultTemplate = q[NOESCAPE 0
@@ -596,12 +595,15 @@ sub writePluginConfigurationsForSystem
my $attrs = $info->{attrs} || {};
- foreach my $pluginName (OpenSLX::OSPlugin::Engine->getAvailablePlugins()) {
+ my @activePlugins;
+ foreach my $pluginName (@{$info->{'installed-plugins'}}) {
vlog(2, _tr("checking configuration of plugin '%s'", $pluginName));
# skip inactive plugins
my $pluginScope = lc($pluginName);
next unless $attrs->{"${pluginScope}::active"};
+
+ push @activePlugins, $pluginName;
vlog(2, _tr("writing configuration file for plugin '%s'", $pluginName));
# write plugin configuration to a file:
@@ -636,6 +638,8 @@ sub writePluginConfigurationsForSystem
);
}
}
+ my $activePluginStr = @activePlugins ? join ',', @activePlugins : '<none>';
+ vlog(0, _tr("active plugins: %s", $activePluginStr));
return;
}