Changeset 3c7da22
- 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
- Location:
- fedkit
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/federate.sh
ra098fab r3c7da22 37 37 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 38 38 39 GATEWAY=`$EMUDIR/tmcc -b syncserver | awk ' { match($0, /SERVER=[^[:space:]]+/); print substr($0,RSTART+8,RLENGTH-9);}'` 39 # Get our gateway, share, and mount user from the configuration file. 40 # There's probably a way to get all three at once, but this works. 41 GATEWAY=`perl -ne '/ControlGateway:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 42 SHARE=`perl -ne '/SMBShare:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 43 SMBUSER=`perl -ne '/ProjectUser:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 40 44 41 45 # … … 81 85 echo "Mounting via SMB." 82 86 83 exec "/tmp/$SMBMOUNT" 87 exec "/tmp/$SMBMOUNT" $SHARE $SMBUSER $GATEWAY -
fedkit/smbmount.pl
ra098fab r3c7da22 3 3 4 4 $TMCC="/usr/local/etc/emulab/tmcc"; 5 $SHARE= "USERS";6 $PUSER= "jhickey";7 $ADDR= `cat /usr/local/etc/emulab/bossnode`;5 $SHARE=shift || "USERS"; 6 $PUSER=shift || "jhickey"; 7 $ADDR=shift || `cat /usr/local/etc/emulab/bossnode`; 8 8 9 9 chomp $ADDR; -
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.