Ignore:
Timestamp:
Feb 10, 2010 10:29:18 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
bbd0039
Parents:
b73cc45
Message:

Add support for parameters via files in a standard emulab location

Also moved combo_active.pl to combo.pl and added support for passive gateways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/prep_gateway.pl

    rb73cc45 r8d4e4fb  
    1010my $tunnelip;
    1111my $peer;
    12 
    13 exit(20) unless GetOptions('ssh_pubkey=s' => \$ssh_pubkey,
     12my $use_file;
     13my %opts = (
     14    'ssh_pubkey=s' => \$ssh_pubkey,
    1415    'tunnelip' => \$tunnelip,
    1516    'peer=s' => \$peer,
     17    'use_file' => \$use_file,
    1618);
     19
     20exit(20) unless GetOptions(%opts);
     21
     22gateway_lib::read_config(gateway_lib::emulab_config_filename(), \%opts)
     23    if $use_file;
    1724
    1825gateway_lib::set_sshd_params(
     
    6471connectivity information
    6572
     73=item B<use_file>
     74
     75If given read additional parameters from the file in
     76/proj/I<project>/exp/I<experiment/tmp/I<hostname>.gw/conf where those are the
     77current testbed project and experiment and the hostname is before the first
     78dot.  The file is option: value.
     79
     80
    6681=back
    6782
Note: See TracChangeset for help on using the changeset viewer.