Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
385e075b
Commit
385e075b
authored
May 08, 2012
by
Leigh B Stoller
Browse files
Some cleanup.
Add interface/host for foamvm
parent
c86553a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/phases/boss/genirack
View file @
385e075b
#
# Additional stuff for setting up the geni racks.
#
# ILO tasks.
# Create elabman account with password and key.
# Change power on setting.
# Change logout timeout.
#
# BIOS tasks.
# Change boot order.
#
# Switch tasks:
# 2610> vlan 1 ip address 10.1.1.253/24
# 2610> ip default-gateway 10.1.1.254
...
...
@@ -25,19 +17,9 @@
#
# Control node image changes before it can booted.
# fix up the interfaces file.
# Add /etc/hostname .
# Turn off emulab boot stuff.
# Comment out swap partition from fstab
# Blacklist hpilo hpdwt radeon
# Fix up grub.cfg (console, terminal, timeout, add /bin/sh entry).
# Add /etc/hostname.
# Add /etc/resolv.conf
# Set Root password.
# Turn off dhclient stuff?
# Add elabman account since it was blown away by prepare.
# Remove emulab-cnet-found from /etc/init/rc-sysinit.conf
#
# This has to happen after reboot. Not sure yet ...
# Remove /usr/local/etc/rc.d/zzz-inelab.sh
#
use strict;
use libinstall;
...
...
@@ -64,12 +46,15 @@ my %INTERFACES = (
"xn1" => "inet 10.1.1.1 netmask 255.255.255.0",
"xn2" => "inet 10.2.1.1 netmask 255.255.255.0",
"xn3" => "inet 10.3.1.1 netmask 255.255.255.0",
# Direct connect to FOAM VM on the same node.
"xn4" => "inet 10.4.1.1 netmask 255.255.255.0",
);
my %
SWITCH
ES = (
my %
HOSTNAM
ES = (
"procurve1" => "10.1.1.253",
"procurve2" => "10.2.1.253",
"procurve1-alt" => "10.3.1.253",
"foamvm" => "10.4.1.5",
);
sub Install($$$)
...
...
@@ -232,13 +217,13 @@ sub Install($$$)
};
#
# Add /etc/hosts
and /etc/rc.conf
entries for the switches.
# Add /etc/hosts entries for the switches.
#
Phase "etchosts", "Adding hosts entries for switches", sub {
my @strings = ();
foreach my $switch (keys(%
SWITCH
ES)) {
my $ip = $
SWITCH
ES{$switch};
foreach my $switch (keys(%
HOSTNAM
ES)) {
my $ip = $
HOSTNAM
ES{$switch};
push(@strings, "$ip\t$switch");
}
DoneIfEdited($HOSTS);
...
...
@@ -259,6 +244,7 @@ sub Install($$$)
my @strings = ();
my @ifaces = ();
# /etc/rc.conf entries for the switches.
foreach my $iface (keys(%INTERFACES)) {
my $line = $INTERFACES{$iface};
push(@strings, "ifconfig_${iface}=\"$line\"");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment