Changeset 813


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

get console-server hostname from config in sipb-xen-update-conserver

Location:
trunk/packages/sipb-xen-console-server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-console-server/config.todo

    r810 r813  
    22files/etc/conserver/conserver.cf.sipb-xen: master-vm name
    33files/usr/sbin/sipb-xen-update-conserver: db uri
    4 files/usr/sbin/sipb-xen-update-conserver: proxy hostname
  • trunk/packages/sipb-xen-console-server/debian/changelog

    r811 r813  
    22
    33  * use invirt.config rather than /etc/invirt/* directly
     4  * get console-server hostname from config
    45
    5  -- Greg Price <price@mit.edu>  Fri,  1 Aug 2008 23:41:00 -0400
     6 -- Greg Price <price@mit.edu>  Fri,  1 Aug 2008 23:49:26 -0400
    67
    78sipb-xen-console-server (2.04) unstable; urgency=low
  • trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver

    r811 r813  
    2424    realm = config.authn[0].realm
    2525    principal = 'host/'+hostname+'@'+realm
    26     config = '\n'.join('console %s { master %s; }' % (vm, hostname)
    27                        for vm in live_vms())
     26    conftext = '\n'.join('console %s { master %s; }' % (vm, hostname)
     27                         for vm in live_vms())
    2828    f = open('/etc/conserver/sipb-xen-consoles.cf', 'w')
    29     f.write(config)
     29    f.write(conftext)
    3030    f.close()
    3131    reload_conserver()
    3232    subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
    3333                     principal])
    34     subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',
    35                      'console', 'update', config])
     34    subprocess.call(['/usr/bin/remctl', config.console.hostname,
     35                     'console', 'update', conftext])
Note: See TracChangeset for help on using the changeset viewer.