Changeset 1d91791f for fedkit/prep_gateway.pl
- Timestamp:
- Aug 13, 2010 1:34:29 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 5c35160
- Parents:
- c2f92c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/prep_gateway.pl
rc2f92c5 r1d91791f 37 37 38 38 if ($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"); 61 45 gateway_lib::import_key($ssh_pubkey,'/root/.ssh/authorized_keys') 62 46 if $ssh_pubkey;
Note: See TracChangeset
for help on using the changeset viewer.