Show
Ignore:
Timestamp:
08/13/10 01:34:29 (22 months ago)
Author:
Ted Faber <faber@…>
Children:
5c3516062ee3a90b7f4f399f025a6cf240771244
Parents:
c2f92c5b5d8ef9576c4f1f5b60a819ef10843e58
git-committer:
Ted Faber <faber@isi.edu> / 2010-08-13T08:34:29Z+0000
Message:

Remove support for ancient linux distros, which effectively adds support for
modern ones.

Location:
fedkit
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    r1962a5b r1d91791f  
    5151 
    5252if ($install_smb) { 
    53     # fix yum.conf 
    54     copy("/etc/yum.conf", "/etc/yum.conf.bak"); 
    55     my $from = new IO::File("/etc/yum.conf.bak"); 
    56     my $to = new IO::File(">/etc/yum.conf"); 
    57     while (<$from>) { 
    58         s/download.fedoralegacy.org/fedoralegacy.lsu.edu/g; 
    59         print $to $_; 
    60     } 
    61     $from->close(); 
    62     $to->close(); 
    63     # Now, samba.  Because of the python dance on PG, we need to call python2.2 
    64     # explicitly 
    65     system('/usr/bin/python2.2 /usr/bin/yum -y install samba-client'); 
    66     # These tools expect the fstab to include smbfs instead 
    67     $smb_type = 'smbfs'; 
     53    # Install samba 
     54    system('/usr/bin/yum -y install samba-client'); 
     55    # These tools expect the fstab to include cifs 
     56    $smb_type = 'cifs'; 
    6857} 
    6958 
  • fedkit/prep_gateway.pl

    r4e9719b r1d91791f  
    3737 
    3838if ($uname =~ /Linux/) { 
    39     # Right now the only gateway nodes that are Linux nodes are ProtoGENI 
    40     # nodes.  They need a bunch of custom updates to get into the 21st century, 
    41     # but they are on the network. 
    42     if ( -x '/usr/local/federation/bin/sshd' &&  
    43             -e '/usr/local/federation/etc/sshd_config') { 
    44         # Start our modern sshd if one is there 
    45         system("/usr/local/federation/bin/sshd -p 20200 -f " . 
    46             "/usr/local/federation/etc/sshd_config"); 
    47     } 
    48     # fix yum.conf 
    49     copy("/etc/yum.conf", "/etc/yum.conf.bak"); 
    50     my $from = new IO::File("/etc/yum.conf.bak"); 
    51     my $to = new IO::File(">/etc/yum.conf"); 
    52     while (<$from>) { 
    53         s/download.fedoralegacy.org/fedoralegacy.lsu.edu/g; 
    54         print $to $_; 
    55     } 
    56     $from->close(); 
    57     $to->close(); 
    58     # Now, bridging (use old python...) 
    59     system('/usr/bin/python2.2 /usr/bin/yum -y install bridge-utils'); 
    60     #and keys 
     39    # Install bridging software if not present 
     40    system('/usr/bin/yum -y install bridge-utils'); 
     41    # Restart sshd with tunnel params 
     42    gateway_lib::set_sshd_params(  
     43        { 'GatewayPorts' => 'yes', 'PermitTunnel' => 'yes' } ); 
     44    system("/etc/init.d/sshd restart"); 
    6145    gateway_lib::import_key($ssh_pubkey,'/root/.ssh/authorized_keys') 
    6246        if $ssh_pubkey;