files/etc/conserver/conserver.cf.sipb-xen: console-proxy ip
files/etc/conserver/conserver.cf.sipb-xen: master-vm name
files/usr/sbin/sipb-xen-update-conserver: db uri
-files/usr/sbin/sipb-xen-update-conserver: proxy hostname
sipb-xen-console-server (2.05) unstable; urgency=low
* use invirt.config rather than /etc/invirt/* directly
+ * get console-server hostname from config
- -- Greg Price <price@mit.edu> Fri, 1 Aug 2008 23:41:00 -0400
+ -- Greg Price <price@mit.edu> Fri, 1 Aug 2008 23:49:26 -0400
sipb-xen-console-server (2.04) unstable; urgency=low
hostname = socket.getfqdn().lower()
realm = config.authn[0].realm
principal = 'host/'+hostname+'@'+realm
- config = '\n'.join('console %s { master %s; }' % (vm, hostname)
- for vm in live_vms())
+ conftext = '\n'.join('console %s { master %s; }' % (vm, hostname)
+ for vm in live_vms())
f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
- f.write(config)
+ f.write(conftext)
f.close()
reload_conserver()
subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
principal])
- subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',
- 'console', 'update', config])
+ subprocess.call(['/usr/bin/remctl', config.console.hostname,
+ 'console', 'update', conftext])