Show
Ignore:
Timestamp:
10/06/11 17:56:31 (8 months ago)
Author:
Ted Faber <faber@…>
Children:
9bde415c5ea28d84013760f1c683a92a511fc1f1
Parents:
b6a6206de72822cb63f7b26373273586f5b891a5
git-committer:
Ted Faber <faber@isi.edu> / 2011-10-06T17:56:31Z-0700
Message:

fedd-generated SEER certs and distribution (initial implementation,
untested) addresses #33

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    r1d91791f r3df9b33  
    2121my $tmcc_p = new IO::Pipe() || die "Can't open pipe: $!\n"; 
    2222my $shared_config_dir; 
     23my $shared_seer_auth_dir; 
    2324my $local_config_dir = "/usr/local/federation/etc"; 
    2425my %services; 
     
    6364            ($proj, $exp) = ($1, $2); 
    6465            $shared_config_dir = "/proj/$proj/exp/$exp/tmp"; 
     66            $shared_seer_auth_dir = "/proj/$proj/exp/$exp/tbdata"; 
    6567            last; 
    6668        }; 
     
    7072    mkdir($local_config_dir); 
    7173 
    72     foreach my $fn ("seer.conf", "client.conf", "userconf", "hosts") { 
     74    foreach my $fn ("seer.conf", "client.conf", "userconf", "hosts", 
     75            "ca.pem", "node.pem") { 
    7376        copy("$shared_config_dir/$fn", $local_config_dir ) 
    7477            if -e "$shared_config_dir/$fn"; 
     78    } 
     79 
     80    # Copy seer authorization files into the location that standard SEER 
     81    # invocations will look.  The above loop puts them where -F invocations 
     82    # will look. 
     83    foreach my $fn ("ca.pem", "node.pem") { 
     84        copy("$shared_config_dir/$fn", $shared_seer_auth_dir ) 
     85            if -e "$shared_config_dir/$fn" && -d $shared_seer_auth_dir; 
    7586    } 
    7687}