Changeset 1d91791f for fedkit


Ignore:
Timestamp:
Aug 13, 2010 1:34:29 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
5c35160
Parents:
c2f92c5
Message:

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

Location:
fedkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    rc2f92c5 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

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