def resetns(self): """Reset our handle to the ns. """ # Get a generic handle to the nameserver(s) hosts = ro.unique_hosts(self.hosts) with self.lock: self.ns = ro.getns(hosts) return ro.OK
# g2sim.disp.s3 = '%s:3' % (host(g2sim, 'h1')) # g2sim.disp.s2 = '%s:2' % (host(g2sim, 'h1')) # g2sim.disp.s1 = '%s:1' % (host(g2sim, 'h1')) g2sim.disp.s6 = ':6' g2sim.disp.s5 = ':5' g2sim.disp.s4 = ':4' g2sim.disp.s3 = ':3' g2sim.disp.s2 = ':2' g2sim.disp.s1 = ':1' g2sim.screens = g2sim.disp.keys() # predefined groups g2sim.hosts = g2sim.managers.keys() g2sim.ns = ro.unique_hosts(g2sim.managers.values()) g2sim.basedir = gen2home #g2sim.basedir = '$GEN2HOME' g2sim.defaults = { 'stderr': True, 'monitor': 'monitor', 'loglevel': 'info', 'logmon': False, 'description': '[N/A]', } g2sim.svconfig = { "mgrsvc": { # Name of the service 'level':
solo.disp.um = '%s:4' % host(solo, 'h1') solo.disp.lm = '%s:3' % host(solo, 'h1') solo.disp.ur = '%s:2' % host(solo, 'h1') solo.disp.lr = '%s:1' % host(solo, 'h1') # These override the above set and put the GUI's into non-VNC displays solo.disp.ul = '%s:0' % host(solo, 'h1') solo.disp.ll = '%s:0' % host(solo, 'h1') solo.disp.um = '%s:0' % host(solo, 'h1') solo.disp.lm = '%s:0' % host(solo, 'h1') solo.disp.ur = '%s:0' % host(solo, 'h1') solo.disp.lr = '%s:0' % host(solo, 'h1') # predefined groups solo.hosts = solo.managers.keys() solo.ns = ro.unique_hosts(solo.managers.values()) solo.basedir = gen2home #solo.basedir = '$GEN2HOME' solo.defaults = { 'stderr': True, 'monitor': 'monitor', 'loglevel': 'info', 'logmon': False, 'description': '[N/A]', } solo.svconfig = { "mgrsvc": { # Name of the service 'level':
from common import * import remoteObjects as ro ############################################################################# # CIAX CONFIGURATION # Everything runs on one machine. ############################################################################# ciax = Bunch() ciax.managers = populate(h1=Bunch(host=ro.get_myhost(short=True)), ) # predefined groups ciax.hosts = ciax.managers.keys() ciax.ns = ro.unique_hosts(ciax.managers.values()) ciax.basedir = '$PYHOME' ciax.svconfig = { "mgrsvc": { # Name of the service 'level': 0, # what level does it belong to 'hosts': ciax.hosts, # which hosts can it run on 'count': len(ciax.hosts), # how many instances should I start # what is the path to the executable from #the base directory 'description': DESCR.mgrsvc, 'cmddir': 'remoteObjects',