Ignore:
Timestamp:
Aug 1, 2008, 11:43:27 PM (16 years ago)
Author:
price
Message:

use invirt.config in sipb-xen-console-server

Location:
trunk/packages/sipb-xen-console-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-console-server/debian/changelog

    r709 r811  
     1sipb-xen-console-server (2.05) unstable; urgency=low
     2
     3  * use invirt.config rather than /etc/invirt/* directly
     4
     5 -- Greg Price <price@mit.edu>  Fri,  1 Aug 2008 23:41:00 -0400
     6
    17sipb-xen-console-server (2.04) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver

    r706 r811  
    55import os
    66import socket
     7from invirt.config import structs as config
    78
    89sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
     
    2122if __name__ == '__main__':
    2223    hostname = socket.getfqdn().lower()
    23     realm = file('/etc/invirt/realm').read().strip()
     24    realm = config.authn[0].realm
    2425    principal = 'host/'+hostname+'@'+realm
    2526    config = '\n'.join('console %s { master %s; }' % (vm, hostname)
Note: See TracChangeset for help on using the changeset viewer.