support <xcatmaster> keyword in site/networks table.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9533 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-05-10 08:13:58 +00:00
parent f0de7f97f0
commit 74aeca03de

View File

@ -716,6 +716,36 @@ sub setup_FTP
#-----------------------------------------------------------------------------
sub setup_DNS
{
my $rc = 0;
# run makedns
my $XCATROOT = "/opt/xcat"; # default
if ($ENV{'XCATROOT'})
{
$XCATROOT = $ENV{'XCATROOT'};
}
my $cmdref;
$cmdref->{command}->[0] = "makedns";
$cmdref->{arg}->[0] = "-n";
$cmdref->{cwd}->[0] = "/opt/xcat/sbin";
no strict "refs";
my $modname = "ddns";
${"xCAT_plugin::" . $modname . "::"}{process_request}
->($cmdref, \&xCAT::Client::handle_response);
my $rc = xCAT::Utils->startService("named");
if ($rc != 0)
{
return 1;
}
return $rc;
}
if(0)
{
my $XCATROOT = "/opt/xcat"; # default