Changeset f64fa81


Ignore:
Timestamp:
Apr 9, 2008 4:51:00 PM (17 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
8034579
Parents:
4abace9
Message:

event stuff

Location:
fedkit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fedkit/fed-tun.pl

    r4abace9 rf64fa81  
    2929my $ROUTE_GET = "/sbin/route get";  # XXX:  works on FreeBSD, but should
    3030                                    #       should be 'ip route get' for Linux
     31
     32# Ports that are forwarded between testbeds
     33my $TMCD_PORT = 7777;
     34my $SMBFS_PORT = 139;
     35my $PUBSUB_PORT = 16505;
    3136
    3237sub setup_bridging;
     
    9499
    95100    if (defined($opts{'fsname'})) {
    96         $ssh_port_fwds = "-R :139:$opts{'fsname'}:139 ";
     101        $ssh_port_fwds = "-R :$SMBFS_PORT:$opts{'fsname'}:$SMBFS_PORT ";
    97102    }
    98103
    99104    if (defined($opts{'bossname'})) {
    100         $ssh_port_fwds .= "-R :7777:$opts{'bossname'}:7777 ";
     105        my $remote_pubsub_port = $PUBSUB_PORT - 1;  # There will be a local
     106                                                    # pubsubd running, so we
     107                                                    # dodge the port on the
     108                                                    # remote tunnel node.
     109        $ssh_port_fwds .= "-R :$TMCD_PORT:$opts{'bossname'}:$TMCD_PORT ";
     110        $ssh_port_fwds .= "-R :$remote_pubsub_port:$opts{'eventservername'}:" .
     111            "$PUBSUB_PORT ";
    101112    }
    102113
  • fedkit/splitter.pl

    r4abace9 rf64fa81  
    102102        "fileserver" => "fs",
    103103        "boss" => "boss",
     104        "eventserver" => "eventserver",
    104105        "tunnelcfg" => "tun"
    105106    );
     
    643644        my $boss =                              # Master boss node (FQDN)
    644645            $tbparams->{$master}->{'boss'} .  $tbparams->{$master}->{'domain'};
     646        my $event_server =                      # Master event-server (FQDN)
     647            $tbparams->{$master}->{'eventserver'} . 
     648            $tbparams->{$master}->{'domain'};
    645649        my $remote_script_dir =                 # Remote fed script location
    646650            "/proj/" . $tbparams->{$dtb}->{'project'} . "/exp/$eid/tmp";
     
    677681        print $gwconfig "BossName: $boss\n";
    678682        print $gwconfig "FsName: $fs\n";
     683        print $gwconfig "EventServerName: $event_server\n";
    679684        print $gwconfig "Type: $type\n";
    680685        print $gwconfig "RemoteScriptDir: $remote_script_dir\n";
  • fedkit/testbeds.example

    r4abace9 rf64fa81  
    3434FileServer: fs
    3535Boss: boss
     36EventServer: event-server
    3637
    3738# This needs to be true on DETER
     
    5758FileServer: fs
    5859Boss: boss
     60EventServer: event-server
    5961TunnelCfg: false
    6062
     
    7274FileServer: fs
    7375Boss: boss
     76EventServer: event-server
    7477TunnelCfg: false
    7578
Note: See TracChangeset for help on using the changeset viewer.