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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user