3 from TestMapper import TestMapper
4 from TestPool import TestPoolQemu
6 # a small qemu pool for now
8 ( 'kruder.inria.fr', None, None),
9 ( 'estran.inria.fr', None, None),
11 ( 'blitz.inria.fr', None, None),
14 def config (plcs, options):
16 # all plcs on the same vserver box
17 plc_box ='speedball.inria.fr'
19 label=options.personality.replace("linux","")
21 # all qemus on a unique pool of 64bits boxes
23 qemu_pool = TestPoolQemu (onelab_qemus_pool,options)
24 for index in range(options.size):
27 ip_or_hostname=options.ips_qemu.pop()
28 (hostname,ip,unused)=qemu_pool.locate_entry(ip_or_hostname)
30 (hostname,ip,unused) = qemu_pool.next_free()
31 node_map += [ ('node%d'%index, {'host_box':hostname},) ]
33 mapper = {'plc': [ ('*' , {'hostname':plc_box,
34 'PLC_DB_HOST':plc_box,
35 'PLC_API_HOST':plc_box,
36 'PLC_BOOT_HOST':plc_box,
37 'PLC_WWW_HOST':plc_box,
38 'name':'%s-'+label } )
43 return TestMapper(plcs,options).map(mapper)