+++ /dev/null
-files/usr/sbin/sipb-xen-remconffs: realm
-files/usr/sbin/sipb-xen-remconffs: db uri
-files/usr/sbin/sipb-xen-remote-proxy: any one host name
-files/usr/sbin/sipb-xen-remctl-help: remote-proxy hostname
from syslog import *
import sipb_xen_database
+from invirt.config import structs as config
fuse.fuse_python_api = (0, 2)
(princ, realm) = user.split('@')
else:
princ = user
- realm = "ATHENA.MIT.EDU"
+ realm = config.authn[0].realm
return princ.replace('.', '/') + '@' + realm
if __name__ == '__main__':
- sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
+ sipb_xen_database.connect(db.uri)
usage="""
$0 [mount_path]
"""
Help on using the Invirt remctl functions.
"""
import sys
-
+from invirt.config import structs as config
help = [
('list', 'show your VM\'s state (with xm list)'),
def main(args):
args = [n for n in args if n in helpdict]
- print 'remctl remote control <machine> <command>'
+ print 'remctl %s control <machine> <command>' % config.remote.hostname
if args:
for name in args:
print_help(name, helpdict[name])
-#!/bin/sh
+#!/bin/bash
# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
klist -s || kinit -k
# Everything but create must go where the VM is already running.
sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;;
* )
- remctl black-mesa remote "$TYPE" "$SERVICE" "$@" ;;
+ remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
esac