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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.