mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-29 15:51:18 +00:00
Issue 157
add XCATSSLVER environment variable when it's set on sles11.x mn in conserver.cf for calling cons script to communicate with xcatd through tls
This commit is contained in:
@@ -541,7 +541,14 @@ foreach my $node (sort keys %$cfgenthash) {
|
||||
push @$content," master ".$cfgent->{conserver}.";\n";
|
||||
} else { # handle it here
|
||||
my $locerror = $isSN ? "PERL_BADLANG=0 " : ''; # on service nodes, often LC_ALL is not set and perl complains
|
||||
push @$content," exec $locerror".$::XCATROOT."/share/xcat/cons/".$cmeth." ".$node.";\n"
|
||||
|
||||
# add XCATSSLVER environment variable when it's set on sles11.x mn
|
||||
# for cons script to communicate with xcatd through tls
|
||||
my $env;
|
||||
if (defined($ENV{'XCATSSLVER'})) {
|
||||
$env = "XCATSSLVER=$ENV{'XCATSSLVER'} ";
|
||||
}
|
||||
push @$content," exec $locerror $env ".$::XCATROOT."/share/xcat/cons/".$cmeth." ".$node.";\n"
|
||||
}
|
||||
}
|
||||
if (defined($cfgent->{consoleondemand})) {
|
||||
|
Reference in New Issue
Block a user