Changeset 811 for trunk/packages/sipb-xen-console-server/files/usr
- Timestamp:
- Aug 1, 2008, 11:43:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver
r706 r811 5 5 import os 6 6 import socket 7 from invirt.config import structs as config 7 8 8 9 sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen') … … 21 22 if __name__ == '__main__': 22 23 hostname = socket.getfqdn().lower() 23 realm = file('/etc/invirt/realm').read().strip()24 realm = config.authn[0].realm 24 25 principal = 'host/'+hostname+'@'+realm 25 26 config = '\n'.join('console %s { master %s; }' % (vm, hostname)
Note: See TracChangeset
for help on using the changeset viewer.