svn path=/trunk/packages/sipb-xen-console-server/; revision=811
+sipb-xen-console-server (2.05) unstable; urgency=low
+
+ * use invirt.config rather than /etc/invirt/* directly
+
+ -- Greg Price <price@mit.edu> Fri, 1 Aug 2008 23:41:00 -0400
+
sipb-xen-console-server (2.04) unstable; urgency=low
* Get Kerberos realm from config rather than hardcoding.
import subprocess
import os
import socket
+from invirt.config import structs as config
sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
if __name__ == '__main__':
hostname = socket.getfqdn().lower()
- realm = file('/etc/invirt/realm').read().strip()
+ realm = config.authn[0].realm
principal = 'host/'+hostname+'@'+realm
config = '\n'.join('console %s { master %s; }' % (vm, hostname)
for vm in live_vms())