Changeset 3df9b33 for fedkit/federate.pl


Ignore:
Timestamp:
Oct 6, 2011 5:56:31 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
9bde415
Parents:
b6a6206
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    rb6a6206 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}
Note: See TracChangeset for help on using the changeset viewer.