diff options
author | schmelzs | 2010-01-12 14:49:44 +0100 |
---|---|---|
committer | schmelzs | 2010-01-12 14:49:44 +0100 |
commit | 527219e9cc9de99fc74e46f4dc23fbd1a0b5da58 (patch) | |
tree | ca259e5d540a4bcaff0c0de4920f381e70e35ecc /config-db/slxconfig-demuxer | |
parent | Merge branch 'master' of git@openslx.org:openslx (diff) | |
download | core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.tar.gz core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.tar.xz core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.zip |
added pbs stuff
Diffstat (limited to 'config-db/slxconfig-demuxer')
-rwxr-xr-x | config-db/slxconfig-demuxer | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 6e848486..b88efeb6 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -329,6 +329,7 @@ sub bootEnvironmentForType my %bootTypeMap = ( 'pxe' => 'PXE', 'preboot' => 'Preboot', + 'pbs' => 'PBS', ); my $bootType = $bootTypeMap{lc($bootTypeIn)} or die _tr( @@ -407,7 +408,7 @@ sub writeClientConfigurationsForSystem foreach my $client (@$clients) { next if $client->{name} eq '<<<default>>>'; # skip default client, as it doesn't need any config-tgz - + next if ($client->{attrs}->{boot_type} || 'pxe') ne $bootType; # skip clients with non-matching boot type @@ -498,14 +499,22 @@ sub writeClientConfigurationsForSystem "$bootEnv->{'target-path'}/client-config/$externalSystemID" ); } - case 'preboot' { - # for preboot types - my $cname = $client->{name}; - createTarOfPath( - $buildPath, "${cname}.tgz", - "$bootEnv->{'target-path'}/client-config/$externalSystemID" - ); - } + case 'preboot' { + # for preboot types + my $cname = $client->{name}; + createTarOfPath( + $buildPath, "${cname}.tgz", + "$bootEnv->{'target-path'}/client-config/$externalSystemID" + ); + } + case 'pbs' { + # for preboot types + my $cname = $client->{name}; + createTarOfPath( + $buildPath, "${cname}.tgz", + "$bootEnv->{'target-path'}/client-config/$externalSystemID" + ); + } } } } |