Added support for rinstall.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c2b5c89f29
commit
5050faf404
@ -53,8 +53,9 @@ sub process_request {
|
||||
'createimage' => \&web_createimage,
|
||||
'provision' => \&web_provision,
|
||||
'summary' => \&web_summay,
|
||||
'gangliashow' => \&web_gangliaShow,
|
||||
'gangliacurrent' => \&web_gangliaLatest
|
||||
'gangliashow' => \&web_gangliaShow,
|
||||
'gangliacurrent' => \&web_gangliaLatest,
|
||||
'rinstall' => \&web_rinstall
|
||||
);
|
||||
|
||||
#check whether the request is authorized or not
|
||||
@ -1734,4 +1735,17 @@ sub web_attrcount{
|
||||
$container->{$key} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
sub web_rinstall {
|
||||
my ( $request, $callback, $sub_req ) = @_;
|
||||
my $os = $request->{arg}->[1];
|
||||
my $profile = $request->{arg}->[2];
|
||||
my $arch = $request->{arg}->[3];
|
||||
my $node = $request->{arg}->[4];
|
||||
|
||||
# Begin installation
|
||||
my $out = `rinstall -o $os -p $profile -a $arch $node`;
|
||||
|
||||
$callback->( { data => $out } );
|
||||
}
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user