+invirt-remote-host (0.0.1) unstable; urgency=low
+
+ * sipb-xen-remctl-auto -> invirt-remote-host
+
+ -- Evan Broder <broder@mit.edu> Fri, 24 Oct 2008 21:54:35 -0400
+
sipb-xen-remctl-auto (1.5.2) unstable; urgency=low
* sipb-xen-console-server -> invirt-console-host
-Source: sipb-xen-remctl-auto
+Source: invirt-remote-host
Section: net
Priority: extra
Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0)
-Standards-Version: 3.7.2
+Standards-Version: 3.8.0
-Package: sipb-xen-remctl-auto
+Package: invirt-remote-host
Architecture: all
Depends: ${misc:Depends}, remctl-server, invirt-console-host, python-cjson, python-yaml
-Description: Installs the SIPB Xen automatic remctl management system
- This is our automatic remctl configuration management system.
+Description: Installs the Invirt host remctl configuration
+ This is the remctl configuration for an Invirt host. It allows any
+ commands to be run from the Invirt remote server
+++ /dev/null
-Source: sipb-xen-remctl-auto
-Section: net
-Priority: extra
-Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
-Build-Depends: @cdbs@
-Standards-Version: 3.7.2
-
-Package: sipb-xen-remctl-auto
-Architecture: all
-Depends: ${misc:Depends}, remctl-server, invirt-console-host, python-cjson, python-yaml
-Description: Installs the SIPB Xen automatic remctl management system
- This is our automatic remctl configuration management system.
#!/bin/bash
### BEGIN INIT INFO
-# Provides: sipb-xen-remctl-auto
+# Provides: invirt-remote-host
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
-# Short-Description: conserver config from invirt config for invirt host
+# Short-Description: remctl configuration for an Invirt host
# Description:
### END INIT INFO
-PACKAGE=sipb-xen-remctl-auto
+PACKAGE=invirt-remote-host
. /lib/lsb/init-functions
#!/usr/bin/make -f
-DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
include /usr/share/cdbs/1/rules/debhelper.mk
+++ /dev/null
-# /etc/cron.d/sipb-xen-remctl-auto: crontab entries for the sipb-xen-remctl-auto package
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-MAILTO=root
-UPDATE=/usr/sbin/remctl-update.sh
-
-@reboot root if [ -x "$UPDATE" ]; then nice -n10 "$UPDATE" all; fi
-* * * * */15 root if [ -x "$UPDATE" ]; then nice -n10 "$UPDATE" all; fi
-
-# EOF
--- /dev/null
+remote web /usr/sbin/invirt-remote /etc/remctl/acl/remote
+remote control /usr/sbin/invirt-remote /etc/remctl/acl/remote
+++ /dev/null
-remote web /usr/sbin/sipb-xen-remote /etc/remctl/acl/remote
-remote control /usr/sbin/sipb-xen-remote /etc/remctl/acl/remote
import sys
import time
-sys.path.insert(0, '/usr/lib/xen-3.1-1/lib/python')
from xen.lowlevel import xs
xsc = xs.xs()
#!/bin/sh
-# sipb-xen-remote TYPE SERVICE [ARGS...]
+# invirt-remote TYPE SERVICE [ARGS...]
#
# We carry out the remctl command proxied to us by the remote-control server.
case "$TYPE" in
control)
# $SERVICE is hostname
- COMMAND=/usr/sbin/sipb-xen-vmcontrol
+ COMMAND=/usr/sbin/invirt-vmcontrol
;;
web)
case "$SERVICE" in
lvcreate|lvremove|lvrename|lvresize)
- COMMAND=/usr/sbin/sipb-xen-lvm
+ COMMAND=/usr/sbin/invirt-lvm
;;
vmboot)
- COMMAND=/usr/sbin/sipb-xen-vmcontrol
+ COMMAND=/usr/sbin/invirt-vmcontrol
;;
listvms)
- COMMAND=/usr/sbin/sipb-xen-listvms
+ COMMAND=/usr/sbin/invirt-listvms
;;
info)
COMMAND=/usr/sbin/xm
;;
esac
-#echo $COMMAND "$SERVICE" "$@"
$COMMAND "$SERVICE" "$@"
#!/bin/bash
-# sipb-xen-vmcontrol MACHINE ACTION
+# invirt-vmcontrol MACHINE ACTION
#
# remctl should have already verified that the user is authorized to
# control the machine. So, we just need to execute the action requested.
;;
destroy|shutdown)
xm "$ACTION" "$MACHINE"
- /usr/sbin/sipb-xen-update-conserver </dev/null >/dev/null 2>&1 &
+ /usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 &
;;
install|create|reboot)
shift; shift;
else
xm create sipb-database machine_name="$ORIGMACHINE"
fi
- (sleep 4; /usr/sbin/sipb-xen-update-conserver) </dev/null >/dev/null 2>&1 &
+ (sleep 4; /usr/sbin/invirt-update-conserver) </dev/null >/dev/null 2>&1 &
;;
list-long)
xm list --long "$MACHINE"
+++ /dev/null
-#!/bin/sh
-machine="$2"
-cdrom="$3"
-
-if [ -n "$cdrom" ]; then
- xm create sipb-database machine_name="$machine" cdrom_image="$cdrom"
-else
- xm create sipb-database machine_name="$machine"
-fi