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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.