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
e6daf54a
Commit
e6daf54a
authored
May 14, 2012
by
Leigh B Stoller
Browse files
Checkpoint.
parent
de7d5b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/phases/boss/genirack
View file @
e6daf54a
...
...
@@ -30,6 +30,7 @@ use emdb;
use User;
use NodeType;
use OSinfo;
use Image;
my $EMULABDEVEL = "git://git-public.flux.utah.edu/emulab-devel.git";
my $EMULABSTABLE = "git://git-public.flux.utah.edu/emulab-stable.git";
...
...
@@ -40,6 +41,7 @@ my $ILOPASSWORD = "$PREFIX/etc/ilo.pswd";
my $PORTSRC = "http://www.emulab.net/downloads/FreeBSD-8.2-ports.tar.gz";
my $ZZZ = "/usr/local/etc/rc.d/zzz-inelab.sh";
my $DEFAULTOSID = "FEDORA15-STD";
my @EXPORTEDOSIDS= ("FBSD82-STD", "UBUNTU11-64-STD");
my $PGOSSITEVAR = "protogeni/default_osname";
my %INTERFACES = (
...
...
@@ -309,6 +311,25 @@ sub Install($$$)
ExecQuietFatal("cd $TOP_OBJDIR/dhcpd; $GMAKE install");
ExecQuietFatal("$DHCPD_MAKECONF -i");
};
#
# This adds the nightly download of new images from Utah.
#
Phase "crontab", "Editing $CRONTAB", sub {
DoneIfEdited($CRONTAB);
AppendToFileFatal($CRONTAB,
"0 \t6\t*\t*\t*\troot\t$PREFIX/sbin/getimages");
};
foreach my $osid (@EXPORTEDOSIDS) {
Phase "$osid", "Enabling protogeni export for $osid", sub {
my $osinfo = OSinfo->LookupByName($osid);
PhaseFail("No such osid")
if (!defined($osinfo));
$osinfo->Update({"protogeni_export" => 1}) == 0
or PhaseFail("DB query failed");
};
}
PhaseSucceed("Rack Setup Done");
};
return 0;
...
...
Write
Preview
Markdown
is supported
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