Changeset 3c7da22 for fedkit/splitter.pl
- Timestamp:
- Sep 17, 2007 11:35:32 AM (17 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- f70f9c8
- Parents:
- a098fab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/splitter.pl
ra098fab r3c7da22 7 7 use File::Copy; 8 8 9 @scripts = ("federate.sh", "smbmount.pl" );9 @scripts = ("federate.sh", "smbmount.pl", "make_hosts"); 10 10 $local_script_dir = "."; 11 11 … … 233 233 $tb_config = $opts{'testbeds'} || "./testbeds"; # testbed configurations 234 234 $local_script_dir = $opts{'scriptdir'}; # Local scripts 235 236 $smb_share = $opts{'smbshare'} || # Share to mount from the master 237 die "Must give an SMB share\n"; 238 $project_user = $opts{'smbuser'} || # User to mount project dirs as 239 die "Must give an SMB user\n"; 240 235 241 # For now specify these. We may want to generate them later. 236 242 $gw_pubkey = $opts{'gatewaypubkey'}; … … 349 355 next; 350 356 }; 357 # End of the gateways section. Output the client config for this testbed 351 358 /^#\s+End\s+gateways\s+\((\w+)\)/ && do { 352 359 die "Mismatched gateway markers ($1, $gateways)\n" 353 360 unless !$gateways || $gateways == $1; 361 362 die "No control gateway for $gateways?" unless $control_gateway; 363 # Client config 364 $cc = new IO::File(">$tmpdir/$gateways/client.conf"); 365 die "Can't open $tmpdir/$gateways/client.conf: $!\n" unless $cc; 366 print $cc "ControlGateway: $control_gateway\n"; 367 print $cc "SMBShare: $smb_share\n"; 368 print $cc "ProjectUser: $project_user\n"; 369 $cc->close(); 370 354 371 $gateways = 0; 355 372 next; … … 389 406 else { $active_end{"$gateways-$dtb"}++; $active = "true"; } 390 407 408 # This is used to create the client configuration. 409 $control_gateway = "$myname$sdomain" 410 if $type =~ /(control|both)/; 411 391 412 # Write out the file 392 413 open(GWCONFIG, ">$tmpdir/$gateways/$myname$sdomain.gw.conf") || … … 585 606 F</tmp> is used. 586 607 608 =item SMBShare 609 610 The SMB share on the master testbed that will be exported to remote clients. 611 612 =item SMBUser 613 614 The experiment user to mount project directories as. This user needs to be a 615 member of the exported experiment - that is one of the users in the project 616 containing this experiment on the master testbed. 617 587 618 =item Tclparse 588 619
Note: See TracChangeset
for help on using the changeset viewer.