Changeset 830 for trunk/packages


Ignore:
Timestamp:
Aug 3, 2008, 12:32:21 AM (16 years ago)
Author:
y_z
Message:

use invirt config

Location:
trunk/packages/sipb-xen-remote-server
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remconffs

    r519 r830  
    1414
    1515import sipb_xen_database
     16from invirt.config import structs as config
    1617
    1718fuse.fuse_python_api = (0, 2)
     
    121122                else:
    122123                        princ = user
    123                         realm = "ATHENA.MIT.EDU"
     124                        realm = config.authn[0].realm
    124125               
    125126                return princ.replace('.', '/') + '@' + realm
     
    228229
    229230if __name__ == '__main__':
    230         sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
     231        sipb_xen_database.connect(db.uri)
    231232        usage="""
    232233$0 [mount_path]
  • trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remctl-help

    r663 r830  
    44"""
    55import sys
    6 
     6from invirt.config import structs as config
    77
    88help = [
     
    2727def main(args):
    2828    args = [n for n in args if n in helpdict]
    29     print 'remctl remote control <machine> <command>'
     29    print 'remctl %s control <machine> <command>' % config.remote.hostname
    3030    if args:
    3131        for name in args:
  • trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-proxy

    r777 r830  
    1 #!/bin/sh
     1#!/bin/bash
    22# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
    33
     
    2323        sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;;
    2424    * )
    25         remctl black-mesa remote "$TYPE" "$SERVICE" "$@" ;;
     25        remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
    2626esac
Note: See TracChangeset for help on using the changeset viewer.