Commit dc9514fc authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add a "needupdate" to apt_instances. The idea is to use this to signal to

the apt daemon that updates need to be pushed out to the instance clusters.
For now these are just ssh key updates, but will might expand to other
kinds of updates.
parent 825d2642
......@@ -243,6 +243,7 @@ CREATE TABLE `apt_instances` (
`virtnode_count` smallint(5) unsigned NOT NULL default '0',
`servername` tinytext,
`monitor_pid` int(11) default '0',
`needupdate` tinyint(3) NOT NULL default '0',
`logfileid` varchar(40) default NULL,
`cert` mediumtext,
`privkey` mediumtext,
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "needupdate")) {
DBQueryFatal("alter table apt_instances add ".
" `needupdate` tinyint(3) NOT NULL default '0' ".
" after monitor_pid");
return 0;
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment