Add export of RSH and RCP.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c5b5f0c391
commit
3642da1c8e
@ -132,6 +132,29 @@ sub makescript {
|
||||
if ($et and defined($et->{value})) {
|
||||
$ntpservers = $et->{value};
|
||||
|
||||
}
|
||||
|
||||
# read the remoteshell attributes, if they exist
|
||||
# default to rsh on AIX and ssh on Linux
|
||||
my $rsh;
|
||||
my $rcp;
|
||||
if (xCAT::Utils->isLinux()) {
|
||||
$rsh = "/usr/bin/ssh";
|
||||
$rcp = "/usr/bin/scp";
|
||||
} else { #AIX
|
||||
$rsh = "/bin/rsh";
|
||||
$rcp = "/bin/rcp";
|
||||
}
|
||||
# check for admin input
|
||||
(my $et) = $sitetab->getAttribs({key=>"rsh"},'value');
|
||||
if ($et and defined($et->{value})) {
|
||||
$rsh = $et->{value};
|
||||
|
||||
}
|
||||
(my $et) = $sitetab->getAttribs({key=>"rcp"},'value');
|
||||
if ($et and defined($et->{value})) {
|
||||
$rcp = $et->{value};
|
||||
|
||||
}
|
||||
# set env variable $SITEMASTER for Management Node
|
||||
push @scriptd, "SITEMASTER=".$sitemaster."\n";
|
||||
@ -149,6 +172,12 @@ sub makescript {
|
||||
push @scriptd, "export NTPSERVERS\n";
|
||||
}
|
||||
|
||||
# export remote shell
|
||||
push @scriptd, "RSH=".$rsh."\n";
|
||||
push @scriptd, "export RSH\n";
|
||||
push @scriptd, "RCP=".$rcp."\n";
|
||||
push @scriptd, "export RCP\n";
|
||||
|
||||
my $et = $typetab->getNodeAttribs($node,['os','arch','profile']);
|
||||
if ($^O =~ /^linux/i) {
|
||||
unless ($et and $et->{'os'} and $et->{'arch'}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user