Changeset 706
- Timestamp:
- Jul 22, 2008, 1:16:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver
r672 r706 21 21 if __name__ == '__main__': 22 22 hostname = socket.getfqdn().lower() 23 realm = file('/etc/invirt/realm').read().strip() 24 principal = 'host/'+hostname+'@'+realm 23 25 config = '\n'.join('console %s { master %s; }' % (vm, hostname) 24 26 for vm in live_vms()) … … 28 30 reload_conserver() 29 31 subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab', 30 'host/'+hostname+'@ATHENA.MIT.EDU'])32 principal]) 31 33 subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu', 32 34 'console', 'update', config])
Note: See TracChangeset
for help on using the changeset viewer.