+invirt-console-host (0.0.1) unstable; urgency=low
+
+ * sipb-xen -> invirt
+ * -server -> -host while we're at it
+
+ -- Greg Price <price@mit.edu> Fri, 24 Oct 2008 01:23:56 -0400
+
sipb-xen-console-server (2.8) unstable; urgency=low
* Create a dummy console entry that exists by default so that conserver
-Source: sipb-xen-console-server
+Source: invirt-console-host
Section: servers
Priority: important
-Maintainer: sipb-xen@mit.edu
+Maintainer: invirt@mit.edu
Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), config-package-dev (>= 4.5~)
Standards-Version: 3.7.2
-Package: sipb-xen-console-server
+Package: invirt-console-host
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Source: sipb-xen-console-server
+Source: invirt-console-host
Section: servers
Priority: important
-Maintainer: sipb-xen@mit.edu
+Maintainer: invirt@mit.edu
Build-Depends: @cdbs@
Standards-Version: 3.7.2
-Package: sipb-xen-console-server
+Package: invirt-console-host
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
This package was created for internal use of the SIPB Xen Project of
-the MIT Student Information Processing Board. Ask sipb-xen@mit.edu if
+the MIT Student Information Processing Board. Ask invirt@mit.edu if
you have questions about redistribution.
--- /dev/null
+#
+# cron-jobs for invirt-console-host
+# Refresh the list of active VM consoles
+#
+
+MAILTO=root
+
+*/5 * * * * root python /usr/sbin/invirt-update-conserver
#! /bin/sh
### BEGIN INIT INFO
-# Provides: sipb-xen-console-server
+# Provides: invirt-console-host
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Invirt host console config"
-NAME=sipb-xen-console-server
+NAME=invirt-console-host
SCRIPTNAME=/etc/init.d/$NAME
# Read configuration variable file if it is present
#!/bin/sh
-# postinst script for sipb-xen-console-server
+# postinst script for invirt-console-host
#
# see: dh_installdeb(1)
case "$1" in
configure)
cat >>/etc/sudoers <<EOF
-### BEGIN sipb-xen-console-server
+### BEGIN invirt-console-host
conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console d_*
-### END sipb-xen-console-server
+### END invirt-console-host
EOF
;;
#!/bin/sh
-# prerm script for sipb-xen-console-server
+# prerm script for invirt-console-host
#
# see: dh_installdeb(1)
case "$1" in
remove|upgrade|deconfigure)
- perl -i.bak -ne 's%^### (BEGIN|END) sipb-xen-console-server\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
+ perl -i.bak -ne 's%^### (BEGIN|END) invirt-console-host\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
;;
failed-upgrade)
#!/usr/bin/make -f
DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
-DEB_DIVERT_EXTENSION = .sipb-xen
-DEB_DIVERT_FILES_sipb-xen-console-server += \
- /etc/conserver/conserver.cf.sipb-xen \
- /etc/conserver/server.conf.sipb-xen
+DEB_DIVERT_EXTENSION = .invirt
+DEB_DIVERT_FILES_invirt-console-host += \
+ /etc/conserver/conserver.cf.invirt \
+ /etc/conserver/server.conf.invirt
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/config-package.mk
+++ /dev/null
-#
-# cron-jobs for sipb-xen-console-server
-# Refresh the list of active VM consoles
-#
-
-MAILTO=root
-
-*/5 * * * * root python /usr/sbin/sipb-xen-update-conserver
}
#include /etc/conserver/invirt-genconfig.cf
-#include /etc/conserver/sipb-xen-consoles.cf
+#include /etc/conserver/invirt-consoles.cf
principal = 'host/'+hostname+'@'+realm
conftext = '\n'.join('console %s { master %s; }' % (vm, hostname)
for vm in live_vms())
- f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
+ f = open('/etc/conserver/invirt-consoles.cf', 'w')
f.write(conftext)
f.close()
reload_conserver()